Descriptionstrings: use Robin-Karp algorithm for LastIndex
benchmark old ns/op new ns/op delta
BenchmarkSingleMatch 49443 52275 +5.73%
BenchmarkIndex 28.8 27.4 -4.86%
BenchmarkLastIndex 14.5 14.0 -3.45%
BenchmarkLastIndexHard1 3982782 2309200 -42.02%
BenchmarkLastIndexHard2 3985562 2287715 -42.60%
BenchmarkLastIndexHard3 3555259 2282866 -35.79%
Patch Set 1 #Patch Set 2 : diff -r 69b3f42e1c4d https://code.google.com/p/go #Patch Set 3 : diff -r 69b3f42e1c4d https://code.google.com/p/go #Patch Set 4 : diff -r 69b3f42e1c4d https://code.google.com/p/go #
Total comments: 2
Patch Set 5 : diff -r 75040398cb4e https://code.google.com/p/go #Patch Set 6 : diff -r 41a383d40558 https://code.google.com/p/go #
Total comments: 4
Patch Set 7 : diff -r 173175ba9eb71f00f69da09c738523eb4fab36a6 https://code.google.com/p/go #Patch Set 8 : diff -r 173175ba9eb71f00f69da09c738523eb4fab36a6 https://code.google.com/p/go #MessagesTotal messages: 18
|