about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorChris Morgan <me@chrismorgan.info>2015-08-25 07:47:42 +1000
committerChris Morgan <me@chrismorgan.info>2015-08-25 07:47:42 +1000
commit81c1d142d31736a8b65c111c3aa4a1a5723ee4e5 (patch)
tree170c7cfe799b47ccd060b7972cd1ddb3cabbbf1d /src/libstd/sys/unix/stack_overflow.rs
parent4c996499a1bcf747b12f8290eeff3024e59da529 (diff)
downloadrust-81c1d142d31736a8b65c111c3aa4a1a5723ee4e5.tar.gz
rust-81c1d142d31736a8b65c111c3aa4a1a5723ee4e5.zip
Simplify `String`’s `Extend<&str>` implementation
Reserving lower_bound bytes was just silly. It’d be perfectly reasonable
to have empty strings in the iterator, which could cause superfluous
reallocation of the string, or to have more than one byte per string,
which could cause additional reallocation (in practice it’ll balance
out). The added complexity of this logic is simply pointless, adding
a little bloat with no demonstrable advantage and slight disadvantage.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions