]> cloud.milkyroute.net Git - dolphin.git/commit
Avoid sorting too frequently
authorFelix Ernst <felixernst@zohomail.eu>
Thu, 4 Jan 2024 17:16:47 +0000 (18:16 +0100)
committerFelix Ernst <felixernst@kde.org>
Mon, 22 Jan 2024 13:45:01 +0000 (13:45 +0000)
commit65eefdce67e8c7bea6156e7f52f293f2cc09a140
treedc18db353a60bc9bacacc1769e2878c134828e35
parent7a28bed8ee3c6400abc2cfe8bd1ce67454f4d00a
Avoid sorting too frequently

d98037745fe6b5efbe9b145da7d20fa2f731b6a6 changed the time from 500 ms to
50 ms. This commit changes it to 100 ms.

Information relevant for sorting might change repeatedly. Prior to this
commit here we would resort within 50 ms of sorting being requested. If a
lot of resorts would be requested in a short time frame, this could lead
to the item order changing within the view up to 20 times a second which
would lead to a lot of unnecessary movement and make it impossible to
read even file names during the repeated sorting.

100 ms is half as bad in that regard. Bigger values might be even better
    but it is a trade-off.
src/kitemviews/kfileitemmodel.cpp