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

Add caching #19

Merged
merged 15 commits into from
Feb 5, 2024
Merged

Add caching #19

merged 15 commits into from
Feb 5, 2024

Conversation

diondokter
Copy link
Collaborator

Fixes #5

src/cache.rs Outdated Show resolved Hide resolved
@diondokter
Copy link
Collaborator Author

Need to add dirty checks. Not sure what the best way is. The idea is that any changes mark the cache as dirty.

At the end of all operations when we know the flash state is consistent, we unmark the cache dirty.
Then when a cache is dirty at the start of an operation we invalidate it so we make sure we don't hold on to any incorrect cache data.

@diondokter diondokter marked this pull request as ready for review February 5, 2024 12:19
@diondokter diondokter merged commit 04d98aa into master Feb 5, 2024
4 checks passed
@diondokter diondokter deleted the cache branch February 5, 2024 15:37
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.

Add an optional cache
1 participant