[KPhotoAlbum] Improving loading images when they are to be stacked

Robert Krawitz rlk at alum.mit.edu
Sat Mar 17 22:33:32 CET 2018


I've noticed for a while that loading images when they need to be
stacked is much slower than otherwise.  I thought it was related to
the datebar flashing, but that appears to only be one piece of it.
There are a number of other problems, including processing EXIF
information with every image and the process of identifying stacks
altogether.

This patch fixes the datebar flashing (don't update the datebar until
all images are loaded), the EXIF information (likewise), and part of
the problem of identifying stacks (creating a cache while searching
for images that's destroyed right away).  This is somewhat faster,
from maybe 1-2 images/second to about 6, but nowhere near the speed of
loading images that don't need to be stacked, which I get about 100
images/second (for ~800KB images).  So there's still a lot of
inefficiency in there, but I haven't made a lot of headway through
it.
-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Improve-loading-of-images-when-they-are-to-be-stacke.patch
Type: application/octet-stream
Size: 5374 bytes
Desc: not available
URL: <http://mail.kdab.com/pipermail/kphotoalbum/attachments/20180317/45f9ba7b/attachment.obj>


More information about the KPhotoAlbum mailing list