[KPhotoAlbum] More thumbnail investigations
johannes at zarl-zierl.at
Fri May 18 22:45:31 BST 2018
Thanks for your detailed analysis (not just this one, but you often dig into things quite
thoroughly and provide useful information)!
Am Montag, 14. Mai 2018, 14:41:43 CEST schrieb Robert Krawitz:
> The best solution would be to generate thumbnails upon image load for
> images up to a certain size. That would combine nicely with the MD5
> code, which can also profit from having the entire file (since the
> underlying crypto code in Qt only does 16K I/O ops). We could always
> postpone the thumbnail generation for really big files (and files that
> need load methods other than JPEG or thumbnail extraction from RAW) to
> the end.
My gut feeling is that we do read image files too many times (at least 3 times for exif,
thumbnails, md5) and without optimizing for cache-friendliness.
> This work may not be entirely trivial, but it could have a pretty big
> payoff when loading files.
I've shied away from tackling this issue because of the complexity of the code it touches.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Kphotoalbum