Skip to content
New issue

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

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mateusz834
Copy link
Member

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

@gopherbot
Copy link
Contributor

This PR (HEAD: 667f3da) 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

x/crypto/cryptobyte: non allocating AddUint*LengthPrefixed and AddASN1 API
2 participants