about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-12-06 21:05:31 +0000
committerbors <bors@rust-lang.org>2016-12-06 21:05:31 +0000
commit5f128ed10f040c52e25b16c40235288822044c8c (patch)
tree82847cc0eed7630af3dc0cd73a56e970169281dd /src/test/incremental/thinlto
parentb5d0f90929ddaae89609e9bb229a9b8a27e27615 (diff)
parent2c5d2403d770e624bbb0b9ce8e970efa914a8602 (diff)
downloadrust-5f128ed10f040c52e25b16c40235288822044c8c.tar.gz
rust-5f128ed10f040c52e25b16c40235288822044c8c.zip
Auto merge of #38017 - arthurprs:hm-extend, r=bluss
Smarter HashMap/HashSet pre-allocation for extend/from_iter

HashMap/HashSet from_iter and extend are making totally different assumptions.

A more balanced decision may allocate half the lower hint (rounding up). For "well defined" iterators this effectively limits the worst case to two resizes (the initial reserve + one resize).

cc #36579
cc @bluss
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions