Skip to content
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

Merged
merged 1 commit into from
Feb 12, 2025
Merged

Conversation

rphmeier
Copy link
Contributor

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.

page_cache: &PageCache,
store: &Store,
levels: usize,
) -> anyhow::Result<()> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

io::Result?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will follow up!

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor

pepyakin commented Feb 12, 2025

Merge activity

  • Feb 12, 3:48 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Feb 12, 3:50 AM EST: Graphite rebased this pull request as part of a merge.
  • Feb 12, 3:52 AM EST: A user merged this pull request with Graphite.

@pepyakin pepyakin changed the base branch from rh-fixed-level-cache to graphite-base/801 February 12, 2025 08:49
@pepyakin pepyakin changed the base branch from graphite-base/801 to master February 12, 2025 08:49
@pepyakin pepyakin force-pushed the rh-THR-82-prepopulate branch from 6269261 to b2e78c5 Compare February 12, 2025 08:50
@pepyakin pepyakin merged commit 94b94b7 into master Feb 12, 2025
2 of 8 checks passed
@pepyakin pepyakin deleted the rh-THR-82-prepopulate branch February 12, 2025 08:52
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.

2 participants