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

Robust file cache #598

Open
annehaley opened this issue Sep 27, 2022 · 1 comment
Open

Robust file cache #598

annehaley opened this issue Sep 27, 2022 · 1 comment

Comments

@annehaley
Copy link
Contributor

I think this merits adding a cache abstraction, i.e. functions to mediate adding to the cache that internally handle eviction, rather than direct access to the underlying data structure.

Originally posted by @zachmullen in #597 (comment)

See above PR for details on what further action is needed.

@zachmullen
Copy link
Collaborator

The most important aspect of this is making sure we do cache eviction of previously viewed images. We should only keep the m most recently viewed frames, and only prefetch the next n frames in the default order. Cache entries will need to also contain a flag indicating whether they are fully loaded, or pending.

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

No branches or pull requests

2 participants