I love performance

This commit is contained in:
Noa Aarts 2025-12-10 23:50:08 +01:00
parent 9367dc0caf
commit 338888133c
Signed by: noa
GPG key ID: 1850932741EFF672
2 changed files with 8 additions and 9 deletions

View file

@ -34,7 +34,9 @@ impl Adjacencies {
pub fn reset(&mut self) {
self.amap.iter_mut().for_each(|bitvec| {
bitvec.clear();
if bitvec.any() {
bitvec.clear();
}
})
}
@ -45,7 +47,7 @@ impl Adjacencies {
})
}
fn intersect(&self, other: &Adjacencies) -> Adjacencies {
pub fn intersect(&self, other: &Adjacencies) -> Adjacencies {
Adjacencies {
amap: self
.amap
@ -154,10 +156,6 @@ impl Seating {
}
}
fn make_clone(&self) -> Self {
self.clone()
}
fn empty_table_coords(&self) -> Vec<(usize, Side)> {
self.people_top
.iter()