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

Allow reusing of buffer in BuildBytes() #78

Merged
merged 1 commit into from
Feb 16, 2017

Conversation

erikdubbelboer
Copy link
Contributor

This adds an optional parameter to BuildBytes() which allows for reusing
of a byte buffer. Because it's an optional parameter it will not break
backwards compatibility.

This allows people to use a sync.Pool for the buffers used by
BuildBytes() to reduce garbage generation.

This adds an optional parameter to BuildBytes() which allows for reusing
of a byte buffer. Because it's an optional parameter it will not break
backwards compatibility.

This allows people to use a sync.Pool for the buffers used by
BuildBytes() to reduce garbage generation.
@rvasily rvasily merged commit 26c018f into mailru:master Feb 16, 2017
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.

None yet

2 participants