We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gzip/handler.go
Line 50 in 33a5d2e
Reset use many cpu,because it will call memclrNoHeapPointers.
Reset
memclrNoHeapPointers
I think just use Reset when we get it from pool will be better, remove Reset(io.Discard)
Reset(io.Discard)
What do youk think?
The text was updated successfully, but these errors were encountered:
BenchmarkGzipEncode2/GzipEncode_One_reset BenchmarkGzipEncode2/GzipEncode_One_reset-16 2425 448301 ns/op 39512 B/op 30 allocs/op BenchmarkGzipEncode2/GzipEncode_Two_reset BenchmarkGzipEncode2/GzipEncode_Two_reset-16 2053 541121 ns/op 39637 B/op 30 allocs/op
Sorry, something went wrong.
No branches or pull requests
gzip/handler.go
Line 50 in 33a5d2e
Reset
use many cpu,because it will callmemclrNoHeapPointers
.I think just use
Reset
when we get it from pool will be better, removeReset(io.Discard)
What do youk think?
The text was updated successfully, but these errors were encountered: