[KPhotoAlbum] Speeding up annotation

Robert Krawitz rlk at alum.mit.edu
Sun Jan 12 16:56:01 GMT 2020


I found another smaller optimization; the check for changed options
was being done twice, once in hasChanges and once more in
saveAndClose, which separately calls hasChanges.  I made the check
optional in hasChanges().

This could be made a little faster yet by using a simpler version of
changedOptions() in hasChanges(), but the heavy lifting wouldn't
change.  In any event, it takes about a second to apply the changes
for 130K images now.
-- 
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: patch-annotation-2a.patch
Type: application/octet-stream
Size: 8336 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kphotoalbum/attachments/20200112/f9f90c29/attachment.obj>


More information about the Kphotoalbum mailing list