Skip to content

std::io::mem: add a with_capacity constructor to MemWriter. #10737

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

Merged
merged 1 commit into from
Nov 30, 2013

Conversation

huonw
Copy link
Member

@huonw huonw commented Nov 30, 2013

This allows one to reduce the number of reallocs of the internal buffer
if one has an approximate idea of the size of the final output.

This allows one to reduce the number of reallocs of the internal buffer
if one has an approximate idea of the size of the final output.
bors added a commit that referenced this pull request Nov 30, 2013
This allows one to reduce the number of reallocs of the internal buffer
if one has an approximate idea of the size of the final output.
@bors bors closed this Nov 30, 2013
@bors bors merged commit be6ae6e into rust-lang:master Nov 30, 2013
@huonw huonw deleted the with-cap branch February 25, 2014 05:28
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.

3 participants