Revision 0c836cb...

Go back to digest for 5th January 2014

Optimization in Graphics

Teemu Rytilahti committed changes in [digikam] /importui:

Add previewPossible field to CamItemInfo that is used to decide whether the thumbnail is being queried from the backend.
This speeds up loading of thumbnails as it'll just use the mimetype icon when the backend says the thumbnails are not supported.
This is especially crucial for gphoto2 backend as it'll otherwise throw a lot of errors and slows down remarkably. Also probably speeds the UMS backend too as we don't try to parse the unsupported files.

Note, that CamItemInfo's operators were not changed except the debugging one.


File Changes

Modified 5 files
  • /importui
  •   utilities/backend/camiteminfo.cpp
  •   utilities/backend/camiteminfo.h
  •   utilities/backend/gpcamera.cpp
  •   utilities/backend/umscamera.cpp
  •   utilities/models/importthumbnailmodel.cpp
5 files changed in total