diff --git a/src/ion/mod.rs b/src/ion/mod.rs index 12b0783..6df69cf 100644 --- a/src/ion/mod.rs +++ b/src/ion/mod.rs @@ -485,6 +485,7 @@ impl PrioQueue { } } + #[inline(always)] fn insert(&mut self, bundle: LiveBundleIndex, prio: usize, reg_hint: PReg) { self.heap.push(PrioQueueEntry { prio: prio as u32, @@ -493,10 +494,12 @@ impl PrioQueue { }); } + #[inline(always)] fn is_empty(self) -> bool { self.heap.is_empty() } + #[inline(always)] fn pop(&mut self) -> Option<(LiveBundleIndex, PReg)> { self.heap.pop().map(|entry| (entry.bundle, entry.reg_hint)) }