Use more UDSEntry::reserve() calls to avoid reallocs on multiple inserts
ClosedPublic

Authored by kossebau on Apr 3 2020, 2:06 PM.

Diff Detail

Repository
R320 KIO Extras
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kossebau created this revision.Apr 3 2020, 2:06 PM
Restricted Application added projects: Dolphin, Frameworks. · View Herald TranscriptApr 3 2020, 2:06 PM
Restricted Application added subscribers: kfm-devel, kde-frameworks-devel. · View Herald Transcript
kossebau requested review of this revision.Apr 3 2020, 2:06 PM
meven accepted this revision.Apr 3 2020, 2:28 PM

Seems hard to miss cases like for // +1 for UDS_DISPLAY_NAME but I will trust you did enough review to be confident for all those cases.
A missing one will just cause an allocation anyway which is what this is fixing in the first place, so no arm done basically.

This revision is now accepted and ready to land.Apr 3 2020, 2:28 PM
This revision was automatically updated to reflect the committed changes.