Skip to content

Cursor::populate_key#725

Draft
frankmcsherry wants to merge 2 commits intoTimelyDataflow:master-nextfrom
frankmcsherry:cursor_populate
Draft

Cursor::populate_key#725
frankmcsherry wants to merge 2 commits intoTimelyDataflow:master-nextfrom
frankmcsherry:cursor_populate

Conversation

@frankmcsherry
Copy link
Copy Markdown
Member

This PR starts to investigate a "bulk" data load, which I think is probably the right direction, allowing a C: Cursor to populate an EditList behind 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_keys in 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 of EditList evolution that should be coming down the pipe (trait simplification, but also a columnar backbone).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant