-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: page cache upper level prepopulation #801
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
page_cache: &PageCache, | ||
store: &Store, | ||
levels: usize, | ||
) -> anyhow::Result<()> { |
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.
io::Result?
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.
will follow up!
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.
no can do unless I panic if the I/O pool goes down.
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.
yeah, that was the idea!
We do that everywhere so might as well do it here for at least consistency sake.
6269261
to
b2e78c5
Compare
This prepopulates the 3 upper levels of the page cache (to be made configurable in a follow-up) with a simple recursive algorithm.
Default is false.