Review Request 129159: Major performance improvement when turning previews off in the file dialog.
David Faure
faure at kde.org
Thu Oct 13 16:53:19 UTC 2016
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/129159/
-----------------------------------------------------------
(Updated Oct. 13, 2016, 6:53 p.m.)
Status
------
This change has been marked as submitted.
Review request for KDE Frameworks.
Changes
-------
Submitted with commit 09cd8420e6c901a482c346fdaf4bc1cc38587646 by David Faure to branch master.
Bugs: 346403
https://bugs.kde.org/show_bug.cgi?id=346403
Repository: kio
Description
-------
Added a method for this KDirModel so it can emit dataChanged only once
(or once per dir in a tree) rather than for every item.
CCBUG: 346403
Diffs
-----
src/filewidgets/kdiroperator.cpp 59b1141e3ffb8e95680e98ed29073a977d8d52a8
src/filewidgets/kfilepreviewgenerator.cpp 6937110aa53424f87575166109fa122452f9a817
src/widgets/kdirmodel.h 0cefcae6b3c6e14b0505683ff533bf25e7ccf583
src/widgets/kdirmodel.cpp 2e81d30990c0eb2af742fe1c811f991c0ad892e9
Diff: https://git.reviewboard.kde.org/r/129159/diff/
Testing
-------
kdialog --getopenfilename /dir/with/many/images
Clicking on the file dialog's "preview" button to turn them off.
Before: 100% CPU for a minute or so
After: immediate response
Thanks,
David Faure
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20161013/57d308a7/attachment.html>
More information about the Kde-frameworks-devel
mailing list