]> cloud.milkyroute.net Git - dolphin.git/commit
Sort in items in two stages to speed up natural sorting
authorFrank Reininghaus <frank78ac@googlemail.com>
Wed, 30 Oct 2013 16:48:32 +0000 (17:48 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Wed, 30 Oct 2013 16:48:42 +0000 (17:48 +0100)
commit903381a8982a0aefc7b1eba223f9ee38ded3f018
tree3fb72e79f8a74b4edccba2f72f35250a5a39b098
parente518cea0cf91056fe7ff391b916623fb0654dff4
Sort in items in two stages to speed up natural sorting

Sort the items in a folder first according to their name, without doing
a natural/locale-aware sorting. This is very fast, but the order of the
items is then already close to the final order in most cases.

The number of expensive natural comparisons required to sort the items
is thus greatly reduced.

In my experiments with a folder with 100,000 items, the time required
to sort the files was reduced by 63% with this patch.

REVIEW: 113485
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodel.h