Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
std::io::mem: add a with_capacity constructor to MemWriter.
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.
- Loading branch information
be6ae6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at huonw@be6ae6e
be6ae6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging huonw/rust/with-cap = be6ae6e into auto
be6ae6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huonw/rust/with-cap = be6ae6e merged ok, testing candidate = dfe46f7
be6ae6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/2719
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-c/builds/564
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-t/builds/564
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2723
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1829
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1828
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2735
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1827
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1828
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2737
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1827
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1827
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/1903
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/2724
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/1828
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/1830
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/2499
be6ae6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = dfe46f7