about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-08-25 12:31:11 +0000
committerbors <bors@rust-lang.org>2015-08-25 12:31:11 +0000
commit74728862339e156ecc10dd5a515f51bbaf9b4192 (patch)
tree8640ca3cd2e598fee81a15ef93ebf5fd07971b7e /src/libstd/sys/unix/stack_overflow.rs
parent5c630a61c658cb7d861a60da6951ee06619337b2 (diff)
parent81c1d142d31736a8b65c111c3aa4a1a5723ee4e5 (diff)
downloadrust-74728862339e156ecc10dd5a515f51bbaf9b4192.tar.gz
rust-74728862339e156ecc10dd5a515f51bbaf9b4192.zip
Auto merge of #27986 - chris-morgan:reduce-string-extend-str-implementation, r=bluss
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