D28521: Use more UDSEntry::reserve() calls to avoid reallocs on multiple inserts
Friedrich W. H. Kossebau
noreply at phabricator.kde.org
Fri Apr 3 13:44:09 BST 2020
kossebau added a comment.
@apol So okay if I land this one for now?
The initlist approach does not cover all cases anyway, and until that one is reviewed by enough experienced developers (e.g. who can tell if alignment of data works as hoped), this here should save resources across the globe already :) (even more as std::vector does not know about `Q_DECLARE_TYPEINFO(KIO::UDSEntry, Q_MOVABLE_TYPE);` and on each resize does a full copy of all items.
REPOSITORY
R241 KIO
REVISION DETAIL
https://phabricator.kde.org/D28521
To: kossebau, #frameworks, dfaure
Cc: apol, ahmadsamir, kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200403/2339def6/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list