[Kde-pim] KDE/kdepimlibs/akonadi
Marc Mutz
marc at kdab.net
Fri Apr 11 07:55:45 BST 2008
On Thursday April 10 2008 17:35, Tobias Koenig wrote:
> SVN commit 795521 by tokoe:
>
> Change all QList<QByteArray> to QSet<QByteArray> for itemParts
This is a bad idea. A set doesn't pay it's weight for small numbers of items.
In the vast majority of cases, it's faster to use a sorted vector/qlist
instread of a set. A set is node-based, while a (q)list is simply an array.
Locality of reference and malloc-free appends ruin set's day.
Thanks,
Marc
--
Marc Mutz - marc at kdab.com, mutz at kde.org - Klarälvdalens Datakonsult AB
Platform-independent software solutions - www.kdab.com info at kdab.com
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list