[Digikam-devel] [Bug 195583] First start-up migrating from 0.9.5 is _very_ slow

Marcel Wiesweg marcel.wiesweg at gmx.de
Thu Jun 11 11:24:34 BST 2009


https://bugs.kde.org/show_bug.cgi?id=195583





--- Comment #9 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-06-11 12:24:33 ---
We read currently read width, height, color space and color depth from the
information by the image loaders, and use DImg to calculate the file hash.

(I have a callgrind profile here that I took when importing pictures. This
profile gives me headaches (some methods take 186% of the time??), but
DImg::load for JPEGs only takes 0.29%. This is CPU, without disk access, but I
assume, as exiv2 will read the file anyway, it is in the OS's disk access cache
and disk reading is no limiting factor.)

To fix the profile at hand, I think, we must return from the jp2k loader's code
early if LoadImageData is not set. For color space and bit depth, if it cannot
be retrieved, we must return (wrong) standard values. It is currently not
possible to get this information from exiv2 as I understand.
Btw, I think there is the same problem in the QImage loader.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list