Descriptionbytes: minor optimization to lastIndexFunc
Before and after:
BenchmarkTrimSpace 20000000 81.3 ns/op
BenchmarkTrimSpace 50000000 58.0 ns/op
(most whitespace trimming is ASCII whitespace)
Same optimization appeared a handful of other places
in this file, but not here.
Patch Set 1 #Patch Set 2 : diff -r 835db789f270 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 835db789f270 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 832e7ed7e6b2 https://go.googlecode.com/hg/ #
MessagesTotal messages: 3
|