Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduces fix time by about 30% in the test suite. ``` goos: darwin goarch: amd64 pkg: github.com/automattic/go-search-replace BenchmarkFix-4 1000000 2074 ns/op 216 B/op 7 allocs/op BenchmarkSimpleReplace-4 2000000 605 ns/op 480 B/op 7 allocs/op BenchmarkSerializedReplace-4 500000 3589 ns/op 696 B/op 14 allocs/op PASS ok github.com/automattic/go-search-replace 5.786s ``` ``` goos: darwin goarch: amd64 pkg: github.com/automattic/go-search-replace BenchmarkFix-4 1000000 1484 ns/op 88 B/op 4 allocs/op BenchmarkSimpleReplace-4 2000000 624 ns/op 480 B/op 7 allocs/op BenchmarkSerializedReplace-4 500000 3085 ns/op 568 B/op 11 allocs/op PASS ok github.com/automattic/go-search-replace 4.976s ```
- Loading branch information