Don't tear down renderer and other busy work when Svg::setImagePath is invoked with the same arg
ClosedPublic

Authored by hein on Dec 2 2017, 6:09 PM.

Details

Summary

During my plasmashell startup this saves time for 17 calls. Opening
something like Simple Menu saves another ~dozen.

It's worth investigating why Svg::setImagePath gets called repeatedly
with the same args to begin with, but this is worth doing anyway.

Diff Detail

Repository
R242 Plasma Framework (Library)
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
hein created this revision.Dec 2 2017, 6:09 PM
Restricted Application added projects: Plasma, Frameworks. · View Herald TranscriptDec 2 2017, 6:09 PM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
hein requested review of this revision.Dec 2 2017, 6:09 PM
broulik accepted this revision.Dec 2 2017, 9:45 PM
This revision is now accepted and ready to land.Dec 2 2017, 9:45 PM
This revision was automatically updated to reflect the committed changes.