Summary: | Slow quadratic runtime generating fingerprints or thumbnails in beta6 during a big import | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Scott Crosby <scrosby> |
Component: | Import-IconView | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | languitar, marcel.wiesweg |
Priority: | NOR | ||
Version: | 1.0.0 | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 2.0.0 | |
Sentry Crash Report: |
Description
Scott Crosby
2009-12-01 06:51:58 UTC
So, for you, if i understand properly, slower import is due of list from progress dialog witch take a while to show items. right ? Gilles Caulier Yes. It progressively slows down, and the list in the dialog gets progressively longer. Memory usage also gets progressively bigger. I suspect that the dialog box is the cause, but I do not know. Note, I am not doing a digikam 'import'. Replication instructions: 1. Find a directory with a lot of images. (10k-50k) 2. Make a new collection pointing to that directory [Settings -> Configure DIgikam -> Local Collection -> 'Add Collection'] 3. In the menu, select 'rebuild fingerprints' 4. Select 'scan'. Observe how fast it runs, then wait about 5-10 minutes and it is much slower. Quit and restart digikam and repeat steps 3&4, and it is again fast. In addition, when I run digikam under oprofile, it appears that the dialog box may be responsible for 90% of the CPU utilization. You are quite right, the list including pixmap in the progress dialog grows linearly. A possible solution would be to remove the scroll bar and remove entries from the beginning of the list. If this is such a performance killer I would really vote for this. Showing only the last 5 generated fingerprints should really be enough. Who really wants to scroll through the whole list? Agree... I have make this dialog in case to identify items if something is wrong... Why not to do something like scan dialog at kphotoalbum startup ? Gilles What does it look like? Never used kphotoalbum ;) Dialog is similar than digiKam progress dialog, xcpeted that list view do not exist. There is only a KSqueezedLabel which display current items processed one by one... Gilles Caulier Fixed since a long time, Gilles changed it as described in #7 |