]> git.lizzy.rs Git - rust.git/commit
std: Cache HashMap keys in TLS
authorAlex Crichton <alex@alexcrichton.com>
Sun, 1 May 2016 18:21:04 +0000 (11:21 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 19 May 2016 23:58:15 +0000 (16:58 -0700)
commiteaeef3db0ea9bc100f4c17d708b55a29477ac634
treeaaae5a8a9329ff6a2ffeb050443b1537e59131dc
parent764ef92ae7a26cbb9c2121de3812a0a17739f65f
std: Cache HashMap keys in TLS

This is a rebase and extension of #31356 where we cache the keys in thread local
storage. This should give us a nice speed bost in creating hash maps along with
mostly retaining the property that all maps have a nondeterministic iteration
order.

Closes #27243
src/libstd/collections/hash/map.rs