Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

allocate a reusable buffer for validating MACs #31

Merged
merged 1 commit into from
Oct 2, 2018
Merged

Conversation

Stebalien
Copy link
Member

@Stebalien Stebalien commented Oct 2, 2018

It turns out this was a pretty large source of allocations (by number). We might as well just reuse the same buffer over and over.

It turns out this was a pretty large source of allocations (by number). We might
as well just reuse the same buffer over and over.
@ghost ghost assigned Stebalien Oct 2, 2018
@ghost ghost added the in progress label Oct 2, 2018
@Stebalien
Copy link
Member Author

We could also pull these off a buffer pool but I'm not sure it's worth it. I'm not worried about the amount of memory being used (usually ~32 bytes), just the number of allocations.

@Stebalien Stebalien merged commit 358b683 into master Oct 2, 2018
@ghost ghost removed the in progress label Oct 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants