]> cloud.milkyroute.net Git - dolphin.git/commit
Fix performance regression when loading folders in Details View
authorFrank Reininghaus <frank78ac@googlemail.com>
Wed, 26 Jun 2013 19:18:37 +0000 (21:18 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Wed, 26 Jun 2013 19:18:37 +0000 (21:18 +0200)
commitd72ce531410e548e1c9630ff9ab073958b70dfa1
tree6194b4b1eba5f0674724bee56b3810aac4581a89
parentbbbf039338448d0721fa4c0e187cabcd59f9ee66
Fix performance regression when loading folders in Details View

When using Details View, only insert all pending items immediately if
new items are inserted which might be children of a pending item. Fixes
the problem that inserting the items in multiple bunches slows down the
folder loading.

Note that the cause of the slowness when inserting in multiple bunches
is that KItemListSizeHintResolver needs O(N^2) time in the worst case
for inserting N items into a model with N existing ones.

REVIEW: 111226
src/kitemviews/kfileitemmodel.cpp