D7105: Avoid heap allocations by using QList initializer lists

Denis Kurz noreply at phabricator.kde.org
Thu Aug 3 20:03:09 BST 2017


dkurz created this revision.
dkurz added a project: KDE PIM.
Restricted Application added a subscriber: KDE PIM.

REVISION SUMMARY
  QList's initializer list ctor uses QList::reserve to save linearly
  many heap allocations when compared to using the default
  ctor and then some appends.

REPOSITORY
  R206 KMail

REVISION DETAIL
  https://phabricator.kde.org/D7105

AFFECTED FILES
  src/kmmainwidget.cpp

To: dkurz, #kde_pim_kmail
Cc: #kde_pim, dvasin, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20170803/18ddf955/attachment.html>


More information about the kde-pim mailing list