improve ground/1 performance (#1389)

This commit is contained in:
Mark
2023-07-12 18:11:56 -06:00
parent 29430ec88b
commit cfc49243c8
2 changed files with 23 additions and 2 deletions

View File

@@ -218,6 +218,11 @@ impl<'a> StackfulPreOrderHeapIter<'a> {
None
}
#[inline]
pub fn stack_len(&self) -> usize {
self.stack.len()
}
fn push_if_unmarked(&mut self, loc: IterStackLoc) {
let cell = self.read_cell_mut(loc);