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

Aggresive caching in PrefetchReader #74

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

feefladder
Copy link
Contributor

@feefladder feefladder commented Mar 21, 2025

depends on #76

Add a more aggressive caching strategy to PrefetchReader. Main reason is that this is the reason #76 is nice to have. Alternative could be a CacheReader so we can build a PrefetchReader<CacheReader<CoalesceReader<MyReader>>>? but that will also fetch double cache for the initial prefetch.

I removed the TODO: partial re-use of internal buffer to make code easier. Now a range is either in the prefetch range or in internal cache

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.

None yet

2 participants