crypto
crypto copied to clipboard
cryptobyte: AddUint*LengthPrefixed API perfomance optimization with sync.Pool
benchmark old ns/op new ns/op delta BenchmarkLengthPrefixed-4 1660 371 -77.63%
benchmark old allocs new allocs delta BenchmarkLengthPrefixed-4 17 0 -100.00%
benchmark old bytes new bytes delta BenchmarkLengthPrefixed-4 777 0 -100.00%
Fixes golang/go#54059
This PR (HEAD: 667f3da86edb1ac47bf0fef9998728318d1ab34f) has been imported to Gerrit for code review.
Please visit https://go-review.googlesource.com/c/crypto/+/433503 to see it.
Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info