about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorMarkus Westerlind <markus.westerlind@distilnetworks.com>2020-05-24 15:22:23 +0200
committerMarkus Westerlind <markus.westerlind@distilnetworks.com>2020-05-24 22:35:17 +0200
commitebc7eda9e75829305a31a00037056a5365d261fe (patch)
tree8c155eb373bf7500a139b183ec62405b06fe2ff4 /src/librustc_data_structures
parent1d8489c150df7d0e751f7c438541036df1a9ac5e (diff)
perf: Add inline on commonly used methods added in 69464
Reclaims most of the regression in inflate
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/snapshot_map/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_data_structures/snapshot_map/mod.rs b/src/librustc_data_structures/snapshot_map/mod.rs
index 52865f55f78..b4cc85293f7 100644
--- a/src/librustc_data_structures/snapshot_map/mod.rs
+++ b/src/librustc_data_structures/snapshot_map/mod.rs
@@ -37,6 +37,7 @@ pub enum UndoLog<K, V> {
 }
 
 impl<K, V, M, L> SnapshotMap<K, V, M, L> {
+    #[inline]
     pub fn with_log<L2>(&mut self, undo_log: L2) -> SnapshotMap<K, V, &mut M, L2> {
         SnapshotMap { map: &mut self.map, undo_log, _marker: PhantomData }
     }