derf / feh

a fast and light image viewer
https://feh.finalrewind.org
Other
1.53k stars 159 forks source link

cache stat(2) calls #760

Closed ncfavier closed 3 months ago

ncfavier commented 4 months ago

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 https://github.com/derf/feh/issues/694

derf commented 3 months ago

Indeed. Thanks!