rust/src/libstd
Steven Fackler ccb4e8423e Fix massive performance issue in read_to_end
with_end_to_cap is enormously expensive now that it's initializing
memory since it involves 64k allocation + memset on every call. This is
most noticable when calling read_to_end on very small readers, where the
new version if **4 orders of magnitude** faster.

BufReader also depended on with_end_to_cap so I've rewritten it in its
original form.

As a bonus, converted the buffered IO struct Debug impls to use the
debug builders.

Fixes #23815
2015-03-28 22:32:08 -07:00
..
collections Rollup merge of #23803 - richo:unused-braces, r=Manishearth 2015-03-28 18:12:06 +05:30
ffi rollup merge of #23738: alexcrichton/snapshots 2015-03-27 10:08:40 -07:00
fs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
io Fix massive performance issue in read_to_end 2015-03-28 22:32:08 -07:00
net rollup merge of #23750: murarth/ipaddr-fromstr 2015-03-27 10:07:48 -07:00
num Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
old_io Rollup merge of #23803 - richo:unused-braces, r=Manishearth 2015-03-28 18:12:06 +05:30
old_path Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
prelude Add generic conversion traits 2015-03-23 15:01:45 -07:00
rand Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
rt Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
sync Rollup merge of #23803 - richo:unused-braces, r=Manishearth 2015-03-28 18:12:06 +05:30
sys Rollup merge of #23803 - richo:unused-braces, r=Manishearth 2015-03-28 18:12:06 +05:30
thread rollup merge of #23752: alexcrichton/remove-should-fail 2015-03-27 10:07:48 -07:00
time Fix Duration::weeks docs 2015-03-04 12:16:37 +00:00
array.rs rustdoc: Support for "array" primitive 2015-03-23 14:02:34 -07:00
ascii.rs Test fixes and rebase conflicts, round 3 2015-03-27 16:09:54 -07:00
bool.rs Strip all leading/trailing newlines 2015-03-15 09:08:21 -07:00
dynamic_lib.rs Test fixes and rebase conflicts, round 3 2015-03-27 16:09:54 -07:00
env.rs Test fixes and rebase conflicts, round 3 2015-03-23 22:52:21 -07:00
lib.rs Fix massive performance issue in read_to_end 2015-03-28 22:32:08 -07:00
macros.rs syntax: Remove support for #[should_fail] 2015-03-26 13:53:52 -07:00
os.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
panicking.rs Fallout of std::old_io deprecation 2015-03-13 10:00:28 -07:00
path.rs Revise use of conversion traits 2015-03-26 13:54:48 -07:00
process.rs syntax: Remove support for #[should_fail] 2015-03-26 13:53:52 -07:00
rtdeps.rs fixing trailing whitespace errors 2015-02-11 14:49:07 -08:00
thunk.rs Switched to Box::new in many places. 2015-03-03 21:05:55 +01:00
tuple.rs Remove integer suffixes where the types in compiled code are identical. 2015-03-05 12:38:33 +05:30
unit.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00