buffer: refactor to a form that won't require memclr.
Necessary because our evil memclr should go away. Benchmarks: benchmark old ns/op new ns/op delta BenchmarkOutMessageReset/Single_buffer-12 4.94 4.95 +0.20% BenchmarkOutMessageReset/Many_buffers-12 10.4 12.0 +15.38% BenchmarkOutMessageGrowShrink/Single_buffer-12 42861 47666 +11.21% BenchmarkOutMessageGrowShrink/Many_buffers-12 101896 100626 -1.25% benchmark old MB/s new MB/s speedup BenchmarkOutMessageReset/Single_buffer-12 4853.85 4851.64 1.00x BenchmarkOutMessageReset/Many_buffers-12 2311.82 2006.72 0.87x BenchmarkOutMessageGrowShrink/Single_buffer-12 24464.39 21998.19 0.90x BenchmarkOutMessageGrowShrink/Many_buffers-12 10290.60 10420.48 1.01x
Showing
Please register or sign in to comment