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

Subtree Support needs to be Completed & Tested #1010

Open
bytemaster opened this issue Jan 25, 2025 · 0 comments
Open

Subtree Support needs to be Completed & Tested #1010

bytemaster opened this issue Jan 25, 2025 · 0 comments

Comments

@bytemaster
Copy link
Contributor

A database value can either be "data" or a root of a "subtree"
Binary nodes store inline data or pointer to larger value node.
Value nodes have a flag that indicates if they store a subtree.

It should be possible for binary nodes to have a flag to store subtrees directly in inline data because the value_type field is 4 bits and only 2 types are in use.

This will require testing the reference count recovery algorithm which looks for every subtree as a clue to increment the reference count.

This is needed before we can move psibase to arbtrie.

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

No branches or pull requests

1 participant