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

cache stat(2) calls #760

Merged
merged 1 commit into from
Jun 30, 2024
Merged

cache stat(2) calls #760

merged 1 commit into from
Jun 30, 2024

Conversation

ncfavier
Copy link
Contributor

@ncfavier ncfavier commented Jun 2, 2024

When the user requests sorting by size or mtime, do a "soft preload" of the file list that only calls stat(2) without loading images. This avoids calling stat(2) repeatedly on the same files when sorting the file list, and achieves faster startup on slow filesystems.

Closes #694

When the user requests sorting by size or mtime, do a "soft preload" of
the file list that only calls stat(2) without loading images.
This avoids calling stat(2) repeatedly on the same files when sorting
the file list, and achieves faster startup on slow filesystems.
@derf
Copy link
Owner

derf commented Jun 30, 2024

Indeed. Thanks!

@derf derf merged commit 08b269d into derf:master Jun 30, 2024
8 checks passed
@ncfavier ncfavier deleted the cache-stat branch June 30, 2024 09:40
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.

use stat for sorting by size like we do with mtime
2 participants