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

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Thu Apr 2 18:36:33 BST 2020


kossebau added a comment.


  Yes, I had also looked into adding a constructor with std::initializer_list for more code sugar, but found no way to deal with both QString & longlong where the overhead needed would be worth this. At least by the numbers the benchmark gave me
  And there are only a few cases with a fixed set of inserts, most add stuff conditionally, so the few cases seemed not worth the effort and I deleted my approach.

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/20200402/a704176a/attachment.html>


More information about the Kde-frameworks-devel mailing list