-
Notifications
You must be signed in to change notification settings - Fork 742
BTreeIndex Iterator Remove single run optimization #995
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
Conversation
|
Note This is an automated comment that will be appended during run. 🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 0208b85.
🔴 linux-x86_64-release-asan: some tests FAILED for commit 0208b85.
|
7db9a00 to
0208b85
Compare
| } | ||
|
|
||
| inline const TPartIndexIt::TRecord * GetRecord(const TPartStore& part, TPageId pageId) { | ||
| inline const TPartIndexIt::TRecord * GetRecord(const TPartStore& part, TPageId pageIndex) { |
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.
Очень минорное: немного странное переименование pageId -> pageIndex, ведь индекс это и есть page id.
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.
pageIndex это типо номер с начала внутри TPart
например TPart из 10 страниц их индексы [0..9]
а pageId могут быть [0, 1, 5, 10, 15, ..
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.
В таком случае использовать TPageId в качестве типа очень странно.
Seek benchmarks
yag test -r -F benchmark::TPartIndexIteratorFixture/DoReads/*/0/0/*/*/1(
TPartIndexIteratorFixture/DoReads/b-tree/groups=0/history=0/reverse/ESeek/items=1)Before:
After:
No differences noticed