about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-07-08 21:12:54 +0000
committerbors <bors@rust-lang.org>2015-07-08 21:12:54 +0000
commit020d201a661746359430610ee811b0aaa242dea8 (patch)
tree7fbc96b41a33a8773338b32861e6318a524b9afa /src/rustllvm/RustWrapper.cpp
parent15952ac6cf39c593ae2b9c2cd161f2e221324e6a (diff)
parenta5cc17adaadf9bc4da3b6b375879fda55ed823c9 (diff)
downloadrust-020d201a661746359430610ee811b0aaa242dea8.tar.gz
rust-020d201a661746359430610ee811b0aaa242dea8.zip
Auto merge of #26849 - bluss:read-to-end-memset, r=alexcrichton
Improve zerofill in Vec::resize and Read::read_to_end

We needed a more efficient way to zerofill the vector in read_to_end.
This to reduce the memory intialization overhead to a minimum.

Use the implementation of `std::vec::from_elem` (used for the vec![]
macro) for Vec::resize as well. For simple element types like u8, this
compiles to memset, so it makes Vec::resize much more efficient.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions