diff options
| author | Markus Westerlind <markus.westerlind@distilnetworks.com> | 2020-05-24 15:22:23 +0200 |
|---|---|---|
| committer | Markus Westerlind <markus.westerlind@distilnetworks.com> | 2020-05-24 22:35:17 +0200 |
| commit | ebc7eda9e75829305a31a00037056a5365d261fe (patch) | |
| tree | 8c155eb373bf7500a139b183ec62405b06fe2ff4 /src/librustc_data_structures | |
| parent | 1d8489c150df7d0e751f7c438541036df1a9ac5e (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.rs | 1 |
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 } } |
