-
Notifications
You must be signed in to change notification settings - Fork 137
mssmt: add new batched ms-smt leaf insertion with recursive merge update #1347
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
Draft
Roasbeef
wants to merge
47
commits into
main
Choose a base branch
from
batch-smt-insert
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 34 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
b799654
aider: feat: Implement batched insertion method for CompactedTree
Roasbeef 9d3a9d4
aider: feat: Add empty-batch guard in batched_insert and new unit tests
Roasbeef bb2a8d0
aider: fix: Remove duplicate package declaration in tree_test.go
Roasbeef c0ae5fe
aider: fix: Remove unnecessary type assertions for NewBranch return v…
Roasbeef fb04a20
aider: refactor: Rename package from mssmt to mssmt_test in tree_test.go
Roasbeef 1309ef0
aider: feat: Export batchedInsertionEntry and update test references …
Roasbeef 30b5d90
aider: fix: Update references to exported fields Key and Leaf in comp…
Roasbeef c8d9dbe
aider: refactor: Replace mssmt.treeLeaf with inline struct and update…
Roasbeef a0e84a3
aider: fix: Fix SEARCH block to match existing lines in tree_test.go
Roasbeef a04b554
aider: fix: Update test file to reference exported symbols from mssmt…
Roasbeef cab0def
aider: fix: Correct type in BatchedInsert call in tree_test.go
Roasbeef 0dd3aa4
aider: fix: Remove unnecessary type assertion in TestBatchedInsert fu…
Roasbeef 92f1a0c
aider: fix: Remove unnecessary type assertion in TestBatchedInsertOve…
Roasbeef ce0d5f6
aider: fix: Reuse precomputed empty branch for left and right childre…
Roasbeef f849d8d
aider: feat: Implement compacted leaf creation in batched_insert for …
Roasbeef 752f4a0
aider: feat: Update batched_insert to handle collisions with compacte…
Roasbeef 39f9a86
aider: fix: Use updated leftChild and rightChild in branch creation t…
Roasbeef ee360e9
aider: fix: Remove inner redeclarations of newLeft and newRight in ba…
Roasbeef eb8f224
aider: fix: Record height of compacted leaf and adjust extraction logic
Roasbeef 23313cf
aider: fix: Rename parameter and update variable type in Extract method
Roasbeef 305d412
aider: fix: Wrap stored leaf in branch for requestedHeight equal to c…
Roasbeef 5fc7a89
aider: fix: Ensure Extract returns a BranchNode for requestedHeight >…
Roasbeef ac4d78e
aider: fix: Ensure Extract always returns a BranchNode from Compacted…
Roasbeef fcc3fbd
aider: fix: Ensure Extract always returns a branch node from a compac…
Roasbeef ab01b4a
aider: fix: Declare current as Node interface type in Extract method
Roasbeef e9de62d
aider: fix: Ensure Extract always returns a branch node to prevent panic
Roasbeef 013f658
aider: fix: Add fmt import to resolve undefined fmt errors in node.go
Roasbeef a4be104
aider: fix: Ensure full extraction of compacted leaves to avoid panic…
Roasbeef acbf785
aider: fix: Fully expand compacted leaf nodes in walkDown to prevent …
Roasbeef b414194
aider: fix: Return underlying leaf directly from compacted leaf in wa…
Roasbeef 29c77cb
aider: fix: Sort entries by key in BatchedInsert to ensure correct in…
Roasbeef e6018b5
aider: fix: Ensure correct child ordering in batched_insert branch cr…
Roasbeef 41cd8ac
aider: chore: Remove debug print statements from Extract and walkDown…
Roasbeef b6f47fc
aider: fix: Remove unused "fmt" import from mssmt/node.go
Roasbeef 960e67b
aider: refactor: Rename batched_insert to batchedInsert and add helpe…
Roasbeef 5968e0f
aider: feat: Implement recursive subtree processing for batched inser…
Roasbeef c210afb
aider: refactor: Simplify batchedInsert by extracting subtree process…
Roasbeef 8c26686
aider: fix: Remove leading '+' characters from comments in compacted_…
Roasbeef 53ef400
aider: fix: Remove leading '+' characters from processSubtree functio…
Roasbeef 934adbc
aider: feat: Add BatchedInsertionEntry type and partitionEntries func…
Roasbeef a3591a5
aider: refactor: Move partitionEntries function to package level to f…
Roasbeef 3c19cbe
aider: feat: Add BatchedInsertionEntry type for batched insertions in…
Roasbeef 596f801
mssmt: fix formatting
Roasbeef 6d42508
mssst: revert changes to walkDown+Extract
Roasbeef 7447a5a
aider: refactor: Simplify batched insertion logic in CompactedTree im…
Roasbeef d32b80d
aider: feat: Add documentation for processCompactedLeaf function in c…
Roasbeef 7e3529c
aider: refactor: Improve comments and documentation in compacted_tree.go
Roasbeef File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.