[KPhotoAlbum] More thumbnail investigations

Johannes Zarl-Zierl johannes at zarl-zierl.at
Fri May 18 22:45:31 BST 2018


Hi Robert,

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.

  Johannes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kphotoalbum/attachments/20180518/bf78d3f3/attachment.htm>


More information about the Kphotoalbum mailing list