Skip to content

Correct path compression collapse in delete_key#19

Open
parazyd wants to merge 1 commit intothyeem:masterfrom
parazyd:master
Open

Correct path compression collapse in delete_key#19
parazyd wants to merge 1 commit intothyeem:masterfrom
parazyd:master

Conversation

@parazyd
Copy link
Copy Markdown

@parazyd parazyd commented Jan 13, 2026

Delete failed to merge path bits when collapsing soft nodes, causing
root hash mismatches.

I've added the BitsOwned struct for owned bit paths with optimized
byte-level merging, and updated delete_key() to properly collapse
through soft nodes and inline them when rebuilding hard nodes.

Performance should be comparable to original, and lookups might in
fact be improved since we eliminate unnecessary soft node indirection.

Delete failed to merge path bits when collapsing soft nodes, causing
root hash mismatches.

I've added the BitsOwned struct for owned bit paths with optimized
byte-level merging, and updated delete_key() to properly collapse
through soft nodes and inline them when rebuilding hard nodes.

Performance should be comparable to original, and lookups might in
fact be improved since we eliminate unnecessary soft node indirection.
@parazyd
Copy link
Copy Markdown
Author

parazyd commented Jan 13, 2026

This patch is related to #18

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