Use qobject_cast instead of dynamic_cast
ClosedPublic

Authored by broulik on Dec 19 2018, 9:27 AM.

Details

Summary

Since KJob is a QObject we can use the more efficient qobject_cast here

Test Plan

Copied 1000 files, saved half a millisecond in addSubjob alone

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.
broulik created this revision.Dec 19 2018, 9:27 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptDec 19 2018, 9:27 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
broulik requested review of this revision.Dec 19 2018, 9:27 AM
broulik edited the test plan for this revision. (Show Details)
davidedmundson accepted this revision.Dec 19 2018, 9:56 AM
This revision is now accepted and ready to land.Dec 19 2018, 9:56 AM
This revision was automatically updated to reflect the committed changes.