v1.1.4
-
Improve performance by up to 80% for
Match()
by removing allocations (#37). Credits to @harrison3000!BenchmarkMatch-8 6939124 170.5 ns/op 512 B/op 2 allocs/op BenchmarkMatchBigLate-8 621099 1796 ns/op 512 B/op 2 allocs/op BenchmarkMatchBigEarly-8 2873862 413.7 ns/op 512 B/op 2 allocs/op
BenchmarkMatch-8 58240472 20.66 ns/op 0 B/op 0 allocs/op BenchmarkMatchBigLate-8 896416 1298 ns/op 0 B/op 0 allocs/op BenchmarkMatchBigEarly-8 72513230 16.62 ns/op 0 B/op 0 allocs/op