Feature Request: Support bulk operations for Trees (puts, merge, etc) #167
Labels
No labels
bug
discussion
documentation
duplicate
ignore
new feature
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
golibs/gms-gods#167
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Would it be possible to add bulk puts for Trees, or a Tree Merge operation? So it would be quicker to insert multiple keys.
For example
or
Where I could make the Put function variadic. One would still need to split those values into
k1,v1,k2,v2...and by the time you do that, what is the point, and how much time has been saved?Regarding merging values of one tree into another, I hope it is not much wrong with the code below?
Since both trees are sorted and elements are likely to be inserted at the given sorted node, there will be an internal optimization (unintentional really) occurring during insertion in the way the tree balances itself.
The bulk insertion optimizations are not as significant as the deeper research shows e.g. in Java, this is discussed in #105