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

squashfs: cache the last block decompressed in the file for 10x speedup #202

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

ncw
Copy link
Contributor

@ncw ncw commented Dec 21, 2023

Before this change, we would spend an awful lot of CPU time reading
and decompressing the same block to only read a small part from it.

This change caches the last block used in the file handle and for
typical block sizes used in reads this makes a 10x difference in
throughput.

Before this change, we would spend an awful lot of CPU time reading
and decompressing the same block to only read a small part from it.

This change caches the last block used in the file handle and for
typical block sizes used in reads this makes a 10x difference in
throughput.
@deitch
Copy link
Collaborator

deitch commented Dec 22, 2023

This is great. Solid improvement.

@deitch deitch merged commit ef160a9 into diskfs:master Dec 22, 2023
19 checks passed
@ncw ncw deleted the fix-last-block-cache branch December 23, 2023 17:53
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