[fpc-devel] (patch) performance fix
sergei_gorelkin at mail.ru
Sun Jun 1 12:21:21 CEST 2008
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).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 623 bytes
Desc: not available
More information about the fpc-devel