[patch] KConfig: Efficient iterators

Jarosław Staniek js at iidea.pl
Mon Apr 21 18:44:28 BST 2008


For review
I have encountered that every call took more than 1 second and ~100% of CPU on 
my box, in debugging session for KMail (win32/msvc). Strange.

Use KEntryMap::ConstIterator instead of foreach with entryMap.keys().

Infinite loops may take just one second on your box too, _but_ better to 
optimize them :)


-- 
regards / pozdrawiam, Jaroslaw Staniek
  Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
  Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
  KDE Libraries for MS Windows (http://windows.kde.org)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: kconfig-efficient-iterators.patch
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080421/51c8ed5c/attachment.ksh>


More information about the kde-core-devel mailing list