┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/kfileitemmodelbenchmark.cpp
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2013-10-02 19:08:39 +0200
committerFrank Reininghaus <[email protected]>2013-10-02 19:08:39 +0200
commitae587d2682992644217c58968c6c771a1f2571f7 (patch)
tree93bfd610a983db9a8bc32bf6e93e2c1dbe0534a8 /src/tests/kfileitemmodelbenchmark.cpp
parent926782d3be2502c6d3e87ef992aa371c081d72b4 (diff)
Save memory and time in KFileItemModel by lazy-loading the "ItemData"
To reduce unnecessary memory comsumption and CPU usage, we only fill the QHash<QByteArray, QVariant> if the methods data(int) or setData(int) are called for the corresponding index, or the data is necessary for sorting the model. According to my tests, this patch reduces the memory usage when loading a folder with 100,000 items by 17% in Icons View, and by 26% in Details View. REVIEW: 112725
Diffstat (limited to 'src/tests/kfileitemmodelbenchmark.cpp')
0 files changed, 0 insertions, 0 deletions