Skip to content

perf: skip atomic clears for zero heat bits - #69

Merged
leiysky merged 1 commit into
mainfrom
dev/skip-zero-heat-clears
Oct 28, 2026
Merged

leiysky merged 1 commit into
mainfrom
dev/skip-zero-heat-clears

Conversation

@leiysky

@leiysky leiysky commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

Skip atomic read-modify-write operations when a slot's heat bit is already clear. Reclaiming an unobserved cold mapping drops from four no-op RMWs to zero; actual clears retain fetch_and under the existing partition write guard to preserve neighboring slots in a shared bitmap word.

Add shared-word concurrent-clear and slot-reuse regression coverage, and update the changelog.

Validation on macOS arm64: cargo x check, cargo x test (372 Rust and 9 Python tests), and cargo x lint all passed, including dependency advisories. No throughput benchmark was run; the performance claim is limited to eliminating redundant atomic writes.

@leiysky
leiysky merged commit 3d10727 into main Oct 28, 2026
8 checks passed
@leiysky
leiysky deleted the dev/skip-zero-heat-clears branch October 28, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant