MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / reset_access_counts

Method reset_access_counts

nodedb-graph/src/csr/memory.rs:42–45  ·  view source on GitHub ↗

Reset access counters (called during compaction or periodically).

(&mut self)

Source from the content-addressed store, hash-verified

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.

Callers 1

access_trackingFunction · 0.80

Calls 2

iterMethod · 0.45
setMethod · 0.45

Tested by 1

access_trackingFunction · 0.64