Skip to content

perf: reuse validated payload checksums during reclaim - #68

Merged
leiysky merged 1 commit into
mainfrom
dev/reuse-reclaim-checksum
Oct 28, 2026
Merged

leiysky merged 1 commit into
mainfrom
dev/reuse-reclaim-checksum

Conversation

@leiysky

@leiysky leiysky commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

Hot-record reclaim validates the payload and then computes its CRC32C again while staging the rewrite. Carry the validated borrowed payload into staging to remove the second checksum pass. Key and value validation remains complete, and each replacement header gets its own checksum.

Keep regression coverage compact by reusing the existing staging fixture. A table-driven test covers corrupted keys and values, budget-skip accounting, padding-aware rewrite bytes, and readback after overwriting the source buffer; codec tests cover checksum validation and logical sequence preservation.

Validation on macOS: cargo x check, cargo x test (371 Rust tests and 9 Python tests), and cargo x lint, including documentation, packaging, and dependency checks.

@leiysky
leiysky merged commit 0f425fa into main Oct 28, 2026
8 checks passed
@leiysky
leiysky deleted the dev/reuse-reclaim-checksum branch October 28, 2026 07:55
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