Review Request 109344: When sorting by "Type", determine the mime types as early as possible to make sure that icons can be loaded synchronously
Frank Reininghaus
frank78ac at googlemail.com
Thu Mar 7 22:11:26 GMT 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109344/
-----------------------------------------------------------
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/20130307/b15698b6/attachment.htm>
More information about the kfm-devel
mailing list