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

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Thu Apr 2 19:20:51 BST 2020


kossebau added a comment.


  Looking at kio-extras, seems there are quite some more cases where the number of values inserted is fixed.
  
  Okay, I will revive my std::initializer_list code again, in a separate patch, there are enough use-cases available, so at least the sugar code is nice to have, even without measurable performance changes. Perhaps one of the reviewers then will be able to help how to do efficient code which avoids the unneeded QString constructor/destructor calls.
  
  Until then, the current patch should at least do some ยต-improvement for people browsing lots of files via ftp & http :)

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/2de81038/attachment.html>


More information about the Kde-frameworks-devel mailing list