Use the KFileItemListProperties copy constructor instead of the conversion from KFileItemList to KFileItemListProperties. This saves re-evaluating all items.
ClosedPublic

Authored by markg on Feb 3 2018, 1:30 AM.

Details

Summary

As the title says. Minor optimization.

Test Plan

Ran the testcases, all pass just fine.
Also in callgrind it's one less call to the KFileItemListProperties constructor that takes a KFileItemList. A small win :)

Diff Detail

Repository
R241 KIO
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
markg created this revision.Feb 3 2018, 1:30 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptFeb 3 2018, 1:30 AM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
markg requested review of this revision.Feb 3 2018, 1:30 AM
jtamate accepted this revision.Feb 3 2018, 12:07 PM
This revision is now accepted and ready to land.Feb 3 2018, 12:07 PM
This revision was automatically updated to reflect the committed changes.