formatNumber performance

David Faure faure at kde.org
Thu Dec 21 14:28:56 GMT 2006


On Monday 15 May 2006 14:47, John Tapsell wrote:
> Hi,
>   I use formatNumber from kdelibs (in trunk) a lot in ksysguard but
> the performance is awful.  It appears that it calls the config classes
> every time it's used.  This one function accounts for 10% of my CPU
> Usage in ksysguard.
> 
> Can someone knowledgable look into this?  Can formatNumber be improved please?

I just made KLocale::formatNumber 15 times faster.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list