Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Sprintf with byebufferpool in ctx.String()
# Original fn using Sprintf Benchmark_Ctx_String-24 3846717 318.0 ns/op 152 B/op 8 allocs/op Benchmark_Ctx_String-24 3780208 315.9 ns/op 152 B/op 8 allocs/op Benchmark_Ctx_String-24 3627513 315.1 ns/op 152 B/op 8 allocs/op Benchmark_Ctx_String-24 3712863 317.4 ns/op 152 B/op 8 allocs/op // Modified using bytebufferpool Benchmark_Ctx_String-24 8131666 149.3 ns/op 96 B/op 5 allocs/op Benchmark_Ctx_String-24 7626406 148.3 ns/op 96 B/op 5 allocs/op Benchmark_Ctx_String-24 8194621 149.2 ns/op 96 B/op 5 allocs/op Benchmark_Ctx_String-24 8297750 156.6 ns/op 96 B/op 5 allocs/op
- Loading branch information