Performance
ClosedPublic

Authored by apol on Dec 2 2017, 2:56 PM.

Details

Reviewers
hein
Group Reviewers
Frameworks
Plasma
Commits
R242:1f9b5ed657df: Performance
Summary

Remove splitting + joining of a string just to remove the beginning of a
string.
Remove double look-up.
Solves Clazy warnings

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.
apol created this revision.Dec 2 2017, 2:56 PM
Restricted Application added projects: Plasma, Frameworks. · View Herald TranscriptDec 2 2017, 2:56 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
apol requested review of this revision.Dec 2 2017, 2:56 PM
hein added a subscriber: hein.Dec 2 2017, 3:05 PM
hein added inline comments.
src/plasmaquick/packageurlinterceptor.cpp
166

Should be 'firstSlash < (relativePath.size() - 1)'?

apol updated this revision to Diff 23283.Dec 2 2017, 3:10 PM

Remove crazy check

hein accepted this revision.Dec 2 2017, 3:11 PM
This revision is now accepted and ready to land.Dec 2 2017, 3:11 PM
This revision was automatically updated to reflect the committed changes.