[fpc-devel] (patch) performance fix

Sergei Gorelkin sergei_gorelkin at mail.ru
Sun Jun 1 12:21:21 CEST 2008


Hello,

verbose.UpdateStatus is being called after each line compiled. In turn, 
it calls fmodule.get_module which does linear search in the list of 
loaded modules. The effect is not noticeable while compiling individual 
units, but on huge projects it ends up eating quite a number of CPU cycles.

This can be fixed by changing the order of checks (see the patch attached).

Best regards,
Sergei
-------------- next part --------------
A non-text attachment was scrubbed...
Name: verbose_patch.zip
Type: application/x-zip-compressed
Size: 623 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20080601/e46c9484/attachment.bin>


More information about the fpc-devel mailing list