]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #33318 - alexcrichton:hashmap-seed, r=aturon
authorbors <bors@rust-lang.org>
Fri, 20 May 2016 19:39:00 +0000 (12:39 -0700)
committerbors <bors@rust-lang.org>
Fri, 20 May 2016 19:39:00 +0000 (12:39 -0700)
std: Cache HashMap keys in TLS

This is a rebase and extension of #31356 where we not only cache the keys in
thread local storage but we also bump each key every time a new `HashMap` is
created. This should give us a nice speed bost in creating hash maps along with
retaining the property that all maps have a nondeterministic iteration order.

Closes #27243


Trivial merge