[patch] KConfig: Efficient iterators

Aaron J. Seigo aseigo at kde.org
Tue Apr 22 14:47:56 BST 2008


On Tuesday 22 April 2008, David Jarvie wrote:
> If foreach has such a bad impact on performance, I suggest adding comments

btw, i doubt it's so much the foreach itself as it is the call to keys() which 
iterates over the whole list, allocates a QList and appends the keys one by 
one to them. not pretty when its performance critical code.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080422/1c1b8e07/attachment.sig>


More information about the kde-core-devel mailing list