D7110: Reduce heap allocs by using QVector instead of QList

Denis Kurz noreply at phabricator.kde.org
Thu Aug 3 20:12:06 BST 2017


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

REVISION SUMMARY
  We only create the containers replaced by this patch
  to iterate over it, and we know its size a priori. QVector
  with its initializer list ctor should be used in such cases
  due to less heap allocations, memory consumption,
  cache misses.

REPOSITORY
  R206 KMail

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

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


More information about the kde-pim mailing list