Cursor::populate_key#725
Draft
frankmcsherry wants to merge 2 commits intoTimelyDataflow:master-nextfrom
Draft
Conversation
cd4918f to
d6f9667
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR starts to investigate a "bulk" data load, which I think is probably the right direction, allowing a
C: Cursorto populate anEditListbehind its implementation abstraction, and then users can interact with the edit lists without returning to the cursor's iterators. This is meant to give cursors the ability to be more thoughtful about data loading, using "internal iteration" idioms rather than exposing their iterators outwards and relying on folks using them.At the moment, this gives a modest reduction in binary size just from the removal of closures passed around, but the intent is that more fully developed it would allow the stack of cursors to move larger collections of updates around, rather than bouncing in and out of cursor navigation. Eventually,
Cursor::populate_keysin the plural, and general bulk loading for supplied sets of keys. For the moment, this is potentially either mergeable as is, or .. we can wait for a bit ofEditListevolution that should be coming down the pipe (trait simplification, but also acolumnarbackbone).