Revision 938f773...

Go back to digest for 18th August 2013

Optimization in KDE Base

Frank Reininghaus committed changes in [kde-baseapps/KDE/4.11] /src/kitemviews:

Do not store default values in QHash<QByteArray, QVariant>

Storing values which are equivalent to default-constructed QVariants
does not make much sense because QHash::value returns the same value
even if the corresponding key is not found in the hash.

This commit reduces Dolphin's memory consumption in large folders by
up to 7.3% (tested a folder with 100,000 files in Details View) and
reduces the time required for loading a folder.

FIXED-IN: 4.11.1
REVIEW: 111922

File Changes

Modified 2 files
  • /src/kitemviews
  •   dolphin/kfileitemmodel.cpp
  •   dolphin/kstandarditemlistwidget.cpp
2 files changed in total