formatNumber performance

Thiago Macieira thiago at kde.org
Mon May 15 14:11:30 BST 2006


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?

It could cache whatever configuration it needs, though it would also mean 
running applications would not see a config change when the user changed 
his settings.

I guess the proper fix lies in KConfig.
-- 
Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
  thiago.macieira (AT) trolltech.com     Trolltech AS
    GPG: 0x6EF45358                   |  Sandakerveien 116,
    E067 918B B660 DBD1 105C          |  NO-0402
    966C 33F5 F005 6EF4 5358          |  Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060515/83864b78/attachment.sig>


More information about the kde-core-devel mailing list