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
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
array.rs
ascii.rs Test fixes and rebase conflicts, round 3 2015-03-27 16:09:54 -07:00
bool.rs
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
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
thunk.rs
tuple.rs
unit.rs