Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement complex TSMT inert for depth 16->32 case #1036

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

bobbinth
Copy link
Contributor

This PR implements an insert procedure in std::collections::smt to handle the case when an inserted key-value pair collides with an existing leaf at depth 16 and both key-value pairs must be moved to leaves at depth 32.

Copy link
Contributor

@frisitano frisitano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

stdlib/asm/collections/smt.masm Outdated Show resolved Hide resolved
Copy link
Collaborator

@Al-Kindi-0 Al-Kindi-0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, @bobbinth ! The procedure turned out to be quiet involved but the inlined docs greatly help to lessen the complexity of the code. I personally don't see any immediate simplifications or optimizations.

stdlib/asm/collections/smt.masm Outdated Show resolved Hide resolved
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.

3 participants