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

preallocate protocol slice #56

Merged
merged 2 commits into from
Sep 21, 2017
Merged

preallocate protocol slice #56

merged 2 commits into from
Sep 21, 2017

Conversation

Stebalien
Copy link
Member

This was showing up on CPU profiles as a significant source of repeated allocations. We don't really care about over allocation (don't keep these slices around) and should rarely have more than 8 protocols in a single address.

This was showing up on CPU profiles as a significant source of repeated
allocations. We don't really care about over allocation (don't keep these slices
around) and should rarely have more than 8 protocols in a single address.
no point in slowing things down unnecessarily just for some debugging code.
@whyrusleeping whyrusleeping merged commit f5c34df into master Sep 21, 2017
@whyrusleeping whyrusleeping deleted the feat/perf branch September 21, 2017 01:40
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.

2 participants