Repository navigation
UniversalIO: generic RequestId - #8601
Conversation
| /// - `SmallVec<[usize; 2]>` — the offset within the value buffer that each page range | ||
| /// corresponds to. | ||
| /// A value may span across two consecutive pages if it starts near the end of a page. | ||
| /// Returns `(buffer_offset, page_index, range)` entries that together cover the full |
There was a problem hiding this comment.
what exactly buffer_offset, page_index, range are?
d3c2d82 to
522b6a2
Compare
Now we don't need two separate `SmallVec`s as we can put `buffer_offset` into `RequestId`.
ffuugoo
left a comment
There was a problem hiding this comment.
Needs rebase, but LGTM.
I'd rename RequestId into more generic Meta (user supplies arbitrary "metadata" with request, not strictly an "id"), but we can do this in a follow-up.
46812f7 to
f965610
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (13)
📝 WalkthroughWalkthroughThis refactoring modifies the Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
* IoUringState: generic `RequestId` * UniversalRead: generic `RequestId` * Simplify `gridstore::Pages::get_page_value_ranges` Now we don't need two separate `SmallVec`s as we can put `buffer_offset` into `RequestId`. * Better doc comment * Rename `RequestId` -> `Meta`
Follow up for #8599.
Makes
RequestIdto be a generic parameter ofUniversalReadmethods.Lets callers to decide what to put into
RequestId.The second commit is an example when it can be convenient.
Also, this change makes
IoUringReadIter/IoUringReadMultiIterseparation unnecessary.It gives performance improvement for callers that do not need
RequestId: