[KPhotoAlbum] Speed up new image load time

Robert Krawitz rlk at alum.mit.edu
Mon May 29 23:30:07 BST 2017


On Tue, 30 May 2017 00:05:00 +0200 (CEST), Harald Barth wrote:
>
>> if I were loading 3000 images (30 GB, typically), I'd need on the
>> order of 250-300 seconds just to read the data from disk.
>
> But do you need to read the whole data? If the image is for example a
> jpeg and contains a thumbnail in the header (many do), that could be
> used instead of reading the whole picture and creating one. Then there
> is no reason to read the whole picture and I/O will drop significantly.

Well, you need to read it at at bare minimum to compute the MD5 checksum.

> As I often read my images over a network file system (AFS over
> 100Mbit/s is not uncommon for me), cutting I/O is a win.
-- 
Robert Krawitz                                     <rlk at alum.mit.edu>

***  MIT Engineers   A Proud Tradition   http://mitathletics.com  ***
Member of the League for Programming Freedom  --  http://ProgFree.org
Project lead for Gutenprint   --    http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton



More information about the Kphotoalbum mailing list