]> git.lizzy.rs Git - rust.git/commit
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)
commit179539f6eb61f75244a0dde641b6e4e09c0921ec
tree088a911b82f99863d82a394d8fa5f67025de89c7
parent0352866da7098bdcc868fbc37246b48778ecf74a
parenteaeef3db0ea9bc100f4c17d708b55a29477ac634
Auto merge of #33318 - alexcrichton:hashmap-seed, r=aturon

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