summary refs log tree commit diff
path: root/src/librustc_data_structures/snapshot_map
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2016-11-08 14:02:55 +1100
committerNicholas Nethercote <nnethercote@mozilla.com>2016-11-08 15:14:59 +1100
commit00e48affde2d349e3b3bfbd3d0f6afb5d76282a7 (patch)
tree5432c8fcca66a63397e0f16a907bf6db33384365 /src/librustc_data_structures/snapshot_map
parenteca1cc957fff157575f485ebfd2aaafb33ee98cb (diff)
downloadrust-00e48affde2d349e3b3bfbd3d0f6afb5d76282a7.tar.gz
rust-00e48affde2d349e3b3bfbd3d0f6afb5d76282a7.zip
Replace FnvHasher use with FxHasher.
This speeds up compilation by 3--6% across most of rustc-benchmarks.
Diffstat (limited to 'src/librustc_data_structures/snapshot_map')
-rw-r--r--src/librustc_data_structures/snapshot_map/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_data_structures/snapshot_map/mod.rs b/src/librustc_data_structures/snapshot_map/mod.rs
index a4e6166032d..cd7143ad3ce 100644
--- a/src/librustc_data_structures/snapshot_map/mod.rs
+++ b/src/librustc_data_structures/snapshot_map/mod.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use fnv::FnvHashMap;
+use fx::FxHashMap;
 use std::hash::Hash;
 use std::ops;
 use std::mem;
@@ -19,7 +19,7 @@ mod test;
 pub struct SnapshotMap<K, V>
     where K: Hash + Clone + Eq
 {
-    map: FnvHashMap<K, V>,
+    map: FxHashMap<K, V>,
     undo_log: Vec<UndoLog<K, V>>,
 }
 
@@ -40,7 +40,7 @@ impl<K, V> SnapshotMap<K, V>
 {
     pub fn new() -> Self {
         SnapshotMap {
-            map: FnvHashMap(),
+            map: FxHashMap(),
             undo_log: vec![],
         }
     }