Skip to content

Aggresive caching in PrefetchReader - #74

Closed
feefladder wants to merge 11 commits into
developmentseed:mainfrom
feefladder:aggresive-cache
Closed

feefladder wants to merge 11 commits into
developmentseed:mainfrom
feefladder:aggresive-cache

Conversation

@feefladder

@feefladder feefladder commented Mar 21, 2025 •

Copy link
Copy Markdown
Contributor

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.

2 participants