Descriptionstrings: implement a faster single-string Replacer
The string searching is implemented separately so other functions
may make use of it in the future.
benchmark old ns/op new ns/op delta
BenchmarkSingleMaxSkipping 125889 2474 -98.03%
BenchmarkSingleLongSuffixFail 16252 1996 -87.72%
BenchmarkSingleMatch 260793 136266 -47.75%
benchmark old MB/s new MB/s speedup
BenchmarkSingleMaxSkipping 79.43 4041.57 50.88x
BenchmarkSingleLongSuffixFail 61.65 501.81 8.14x
BenchmarkSingleMatch 57.52 110.08 1.91x
Patch Set 1 #Patch Set 2 : diff -r 7cbb8aa08f8e https://code.google.com/p/go #Patch Set 3 : diff -r 7cbb8aa08f8e https://code.google.com/p/go #
Total comments: 5
Patch Set 4 : diff -r 7cbb8aa08f8e https://code.google.com/p/go #
Total comments: 2
Patch Set 5 : diff -r d4627113a3e9 https://code.google.com/p/go #
Total comments: 10
Patch Set 6 : diff -r c9b56bb76d08 https://code.google.com/p/go #Patch Set 7 : diff -r c9b56bb76d08 https://code.google.com/p/go #
Total comments: 7
Patch Set 8 : diff -r debb590074da https://code.google.com/p/go #
Total comments: 3
MessagesTotal messages: 13
|