Skip to content

perf: simplify cache bookkeeping - #70

Merged
leiysky merged 4 commits into
mainfrom
dev/simplify-cache-bookkeeping
Oct 28, 2026
Merged

leiysky merged 4 commits into
mainfrom
dev/simplify-cache-bookkeeping

Conversation

@leiysky

@leiysky leiysky commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

Remove redundant index page dirty-state writes, skip unchanged managed-memory peak and net-zero L1 charge updates, and bypass shard locking and directory work when L1 has no entry capacity.

Partition locks continue to synchronize index bytes, warm close regenerates every page checksum, and charge transfers retain the existing exclusive-ownership and budget checks. Reuse the existing regression coverage, adding one bypass-count assertion to the zero-capacity L1 scenario.

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

@leiysky
leiysky merged commit 336138e into main Oct 28, 2026
8 checks passed
@leiysky
leiysky deleted the dev/simplify-cache-bookkeeping branch October 28, 2026 09:38
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