Descriptionbytes, strings: faster Fields I'm unhappy about writing this CL, but Fields is much more common than FieldsFunc and an inherently cheaper operation, because most spaces are ASCII, so it does seem to justify special case code. package bytes: BenchmarkFields 50 23659299 ns/op 44.32 MB/s BenchmarkFieldsFunc 50 42000576 ns/op 24.97 MB/s package strings: BenchmarkFields 100 22852634 ns/op 45.88 MB/s BenchmarkFieldsFunc 50 35050756 ns/op 29.92 MB/s Patch Set 1 #Patch Set 2 : diff -r a9fc9baa621b https://code.google.com/p/go/ #Patch Set 3 : diff -r a9fc9baa621b https://code.google.com/p/go/ #Patch Set 4 : diff -r a9fc9baa621b https://code.google.com/p/go/ # Total comments: 9
MessagesTotal messages: 8 | ||||||||||||||||||||||||||||||||||||||||||||||