Review Request: Only use parallel sorting when sorting by name
Emmanuel Pescosta
emmanuelpescosta099 at gmail.com
Wed Jan 9 21:41:11 GMT 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/108309/#review25098
-----------------------------------------------------------
Ship it!
Only use parallel sorting when sorting by name is activated makes sense - avoid thread init overhead for such simple operations ;)
- Emmanuel Pescosta
On Jan. 9, 2013, 8:47 p.m., Frank Reininghaus wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/108309/
> -----------------------------------------------------------
>
> (Updated Jan. 9, 2013, 8:47 p.m.)
>
>
> Review request for Dolphin.
>
>
> Description
> -------
>
> It seems that comparing two dates is less reentrant than it might seem at first sight. In order to prevent crashes and other problems, I propose to only use multiple threads for sorting when sorting by "Name", because naturally comparing strings is the only expensive comparison function.
>
> Does anyone see a problem with this? I really don't want to commit stupid new bugs at this point in the release cycle ;-)
>
>
> This addresses bug 312679.
> http://bugs.kde.org/show_bug.cgi?id=312679
>
>
> Diffs
> -----
>
> dolphin/src/kitemviews/private/kfileitemmodelsortalgorithm.cpp 9588d19
>
> Diff: http://git.reviewboard.kde.org/r/108309/diff/
>
>
> Testing
> -------
>
> Sorting works OK, verified that it uses only one thread when not sorting by name.
>
>
> Thanks,
>
> Frank Reininghaus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20130109/d67b612f/attachment.htm>
More information about the kfm-devel
mailing list