Review Request 109344: When sorting by "Type", determine the mime types as early as possible to make sure that icons can be loaded synchronously
Commit Hook
null at kde.org
Tue Mar 12 18:31:33 GMT 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109344/
-----------------------------------------------------------
(Updated March 12, 2013, 6:31 p.m.)
Status
------
This change has been marked as submitted.
Review request for Dolphin and Christoph Feck.
Description
-------
Christoph reported in https://git.reviewboard.kde.org/r/109180/ (in a comment after the commit) that Dolphin feels slower after the commit. In particular, that icons are loaded asynchronously.
I thought about this issue and can indeed reproduce the problem when sorting by "Type". The problem is that after the commit, the ItemData are created earlier, at a point when the mime types are not known yet. I propose to move the synchronous mime type determination to createItemDataList to fix that.
Diffs
-----
dolphin/src/kitemviews/kfileitemmodel.h 1939671
dolphin/src/kitemviews/kfileitemmodel.cpp 688826e
Diff: http://git.reviewboard.kde.org/r/109344/diff/
Testing
-------
Icons are loaded synchronously, and everything feels faster when sorting by "Type".
Thanks,
Frank Reininghaus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20130312/6c5f5cb2/attachment.htm>
More information about the kfm-devel
mailing list