Skip to content

Commit 7fa17ae

Browse files
committed
Fix ascii-diagram
1 parent 8456db2 commit 7fa17ae

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/policy/car.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
//! │ Slot array with per-ring intrusive circular linked lists: │
1414
//! │ │
1515
//! │ ┌─────────────────────────────────────────────────────────────────────┐ │
16-
//! │ │ index: HashMap<K, usize> slots: Vec<Option<SlotPayload>> │ │
16+
//! │ │ index: HashMap<K, usize> slots: Vec<Option<SlotPayload>> │ │
1717
//! │ │ │ │
18-
//! │ │ Parallel hot-path arrays (cache-friendly sweeps): │ │
19-
//! │ │ referenced: Vec<bool> ring_kind: Vec<Ring> │ │
18+
//! │ │ Parallel hot-path arrays (cache-friendly sweeps): │ │
19+
//! │ │ referenced: Vec<bool> ring_kind: Vec<Ring> │ │
2020
//! │ │ ring_next: Vec<usize> ring_prev: Vec<usize> │ │
2121
//! │ │ │ │
22-
//! │ │ Recent ring (recency) Frequent ring (frequency) │ │
23-
//! │ │ ┌───────────────────┐ ┌─────────────────── │ │
24-
//! │ │ │ hand_recent ──► A ──►│ │ hand_frequent──► X ──►│ │ │
25-
//! │ │ │ ◄── C ◄── B ◄───│ │ ◄── Z ◄── Y ◄─── │ │
26-
//! │ │ └───────────────────┘ └─────────────────── │ │
22+
//! │ │ Recent ring (recency) Frequent ring (frequency) │ │
23+
//! │ │ ┌───────────────────────┐ ┌───────────────────────┐ │ │
24+
//! │ │ │ hand_recent ──► A ──► │ │ hand_frequent──► X ──►│ │ │
25+
//! │ │ │ ◄── C ◄── B ◄─── │ │ ◄── Z ◄── Y ◄─── │ │
26+
//! │ │ └───────────────────────┘ └───────────────────────┘ │ │
2727
//! │ │ Ref=0 → evict to ghost_recent Ref=0 → evict to ghost_frequent │ │
2828
//! │ │ Ref=1 → demote to Frequent Ref=1 → clear ref, advance │ │
2929
//! │ │ │ │

0 commit comments

Comments
 (0)