-
Notifications
You must be signed in to change notification settings - Fork 720
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
btree: add size info for google/btree #1735
Conversation
/rebuild |
Can we split into two PRs? one for port the origin |
Is it necessary? I only put the btree in |
Codecov Report
@@ Coverage Diff @@
## master #1735 +/- ##
==========================================
+ Coverage 77.05% 77.33% +0.28%
==========================================
Files 162 163 +1
Lines 15910 16408 +498
==========================================
+ Hits 12259 12689 +430
- Misses 2627 2667 +40
- Partials 1024 1052 +28
Continue to review full report at Codecov.
|
@disksing addressed your comments, PTAL |
Derivative Works a copy of this License; and | ||
|
||
(b) You must cause any modified files to carry prominent notices | ||
stating that You changed the files; and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to describe what we changed at the head of btree.go
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PTAL @Luffbee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change description added.
The rest LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PTAL @disksing |
What problem does this PR solve?
The b-tree does not support "get rank", "get k-th" operations because it does not have size info of subtree.
What is changed and how it works?
Add size info for it.
Check List
Tests
Side effects