Reset access counters (called during compaction or periodically).
(&mut self)
| 40 | |
| 41 | /// Reset access counters (called during compaction or periodically). |
| 42 | pub fn reset_access_counts(&mut self) { |
| 43 | self.access_counts.iter().for_each(|c| c.set(0)); |
| 44 | self.query_epoch = 0; |
| 45 | } |
| 46 | |
| 47 | /// Predictive prefetch: hint the OS to load a node's adjacency data |
| 48 | /// into the page cache before the traversal touches it. |