crypto icon indicating copy to clipboard operation
crypto copied to clipboard

cryptobyte: AddUint*LengthPrefixed API perfomance optimization with sync.Pool

Open mateusz834 opened this issue 3 years ago • 1 comments

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

mateusz834 avatar Sep 24 '22 13:09 mateusz834

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

gopherbot avatar Sep 24 '22 13:09 gopherbot