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

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Fri Apr 3 02:14:51 BST 2020


kossebau added a comment.


  D28528 <https://phabricator.kde.org/D28528> now up additionally, for those cases where a init list could be used instead.
  
  Having challenged myself, I even found some pattern for doing a union with non-trivial constructors, which is a bit ugly, but makes one feel C++ expertish ;) Also learned during that that unions can have constructors (needed/used for init of the const long long)... that language keeps on an eternal student :P

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/08a61916/attachment.html>


More information about the Kde-frameworks-devel mailing list