Implemented multithreading in KFileItemModelSortAlgorithm

Review Request #107025 - Created Oct. 24, 2012 and submitted - Latest diff uploaded

Information
Emmanuel Pescosta
kde-baseapps
Reviewers
dolphin
freininghaus
Implemented multithreading in KFileItemModelSortAlgorithm.

If more than 100 items to sort and ideal thread count is greater than 1 -> sort them with parallelSort (2 Threads)

Use maximal 2 Threads, because more than 2 Threads are "slower" (more overhead than speed up). (I also have a patch which uses n Threads for sorting, if you want test it ;)
About 2 seconds faster with sorting 500.000 files.
About 5 seconds faster with sorting 1.000.000 files.
Loading...