[PATCH] Speeding up kdebug

Dirk Mueller mueller at kde.org
Tue Oct 14 20:38:05 BST 2003


On Tuesday 14 October 2003 20:48, Nicolas Goutte wrote:

> The idea is to speed up kdebug by parsing not at runtime but at compile
> time. (On my computer, getDescrFromNum needs 1 or 2 ms instead of 19 or 20
> ms. It can change depending system and compiler optimization or because of
> slow or busy disks.)

Note this is a one-time cost only, that means not at each invokation, only 
during the first. 

Assuming that there was some good reason for making it runtime configurable at 
all (I don't know kdebug), attached a patch that reduces the runtime of the 
above mentioned function from 14ms down to 3ms. 

BTW, kde-optimize would have been the correct place..

-- 
> Looking for a KDE-related EMail-Alias ? Get one at kdemail.net for FREE! <
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdebug.diff
Type: text/x-diff
Size: 1927 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031014/a3897be6/attachment.diff>


More information about the kde-core-devel mailing list