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 of flash reads #184

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Add caching of flash reads #184

wants to merge 3 commits into from

Conversation

will-v-pi
Copy link
Contributor

Add caching of flash reads from the device (#183), as the current metadata scans read from the same regions multiple times.

This provides a speedup to picotool info -a on my 4 partition device from 5.7s to 1.6s, and speeds up picotool info from 3.8s to 1.4s, so provides a good performance boost.

Gets fully invalidated on any writes, to minimise complexity, as the only read & write command is picotool config which wouldn't benefit from caching anyway. Also gets invalidated when using picotool save --verify, so you're not just verifying the cached data.

Gets fully invalidated on any writes, to minimise complexity, as the only read & write command is `picotool config` which wouldn't benefit from caching anyway
@will-v-pi will-v-pi added this to the 2.2.0 milestone Nov 26, 2024
@will-v-pi will-v-pi requested a review from kilograham December 4, 2024 12:39
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.

1 participant