rust/src/libstd
bors f11502cda8 Auto merge of #26904 - bluss:no-repeat, r=alexcrichton
In a followup to PR #26849, improve one more location for I/O where
we can use `Vec::resize` to ensure better performance when zeroing
buffers.

Use the `vec![elt; n]` macro everywhere we can in the tree. It replaces
`repeat(elt).take(n).collect()` which is more verbose, requires type
hints, and right now produces worse code. `vec![]` is preferable for vector
initialization.

The `vec![]` replacement touches upon one I/O path too, Stdin::read
for windows, and that should be a small improvement.

r? @alexcrichton
2015-07-09 10:36:41 +00:00
..
collections Use vec![elt; n] where possible 2015-07-09 11:05:32 +02:00
ffi Add comment about stabilizing CString::from_ptr 2015-06-17 09:07:17 -07:00
io Auto merge of #26904 - bluss:no-repeat, r=alexcrichton 2015-07-09 10:36:41 +00:00
net Add netbsd amd64 support 2015-07-01 19:09:14 -07:00
num std: Avoid missing fns on i686-pc-windows-msvc 2015-06-27 13:02:18 -07:00
os Add netbsd amd64 support 2015-07-01 19:09:14 -07:00
prelude Rollup merge of #25224 - brson:stddoc, r=steveklabnik 2015-05-13 00:52:48 -04:00
rand libstd/rand/os.rs: Remove a tiny bit of duplicated code 2015-06-25 23:37:28 +00:00
rt Auto merge of #26741 - alexcrichton:noinline-destructors, r=brson 2015-07-06 19:49:16 +00:00
sync Expand docs for recv 2015-07-01 12:25:25 -04:00
sys Use vec![elt; n] where possible 2015-07-09 11:05:32 +02:00
thread Add netbsd amd64 support 2015-07-01 19:09:14 -07:00
time std: Redesign Duration, implementing RFC 1040 2015-05-13 17:50:58 -07:00
array.rs rustdoc: Support for "array" primitive 2015-03-23 14:02:34 -07:00
ascii.rs std: Split the std_misc feature 2015-06-17 09:06:59 -07:00
bool.rs Strip all leading/trailing newlines 2015-03-15 09:08:21 -07:00
dynamic_lib.rs Add netbsd amd64 support 2015-07-01 19:09:14 -07:00
env.rs Add netbsd amd64 support 2015-07-01 19:09:14 -07:00
error.rs std: Hide some internal functions more aggressively 2015-06-17 09:07:17 -07:00
fs.rs Add .write(true) to append and truncate examples 2015-06-28 17:26:31 -04:00
lib.rs Improve Vec::resize so that it can be used in Read::read_to_end 2015-07-08 19:40:40 +02:00
macros.rs std: clean up duplicated attrs and comment on panic 2015-06-26 09:53:56 -07:00
panicking.rs Fix logic in panic printing with no stderr 2015-06-20 19:54:15 -07:00
path.rs Auto merge of #25736 - tshepang:path-nits, r=steveklabnik 2015-05-25 01:56:48 +00:00
process.rs std::process: Remove helper function pwd_cmd from test module 2015-06-22 00:55:42 -04:00
rtdeps.rs Auto merge of #26741 - alexcrichton:noinline-destructors, r=brson 2015-07-06 19:49:16 +00:00
thunk.rs std: Deprecate the thunk module 2015-06-17 09:07:17 -07:00
tuple.rs tuple.rs: Document more traits implemented by tuples if their components do 2015-06-23 11:18:08 +02:00
unit.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00