[PATCH] Speeding up kdebug
Dirk Mueller
mueller at kde.org
Tue Oct 14 22:38:05 CEST 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-optimize/attachments/20031014/a3897be6/kdebug.bin
More information about the Kde-optimize
mailing list