[fpc-devel] Messages overhead

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed Jul 14 17:10:41 CEST 2010


IMO compiler messages slow down compilation a lot. When messages are not 
really output (prevented by message level...), then a lot of procedure 
calls and string operations can be avoided, when the message preparation 
is bypassed at all.

verbose.Message1 ff. could check the level (and exit accordingly) prior 
to any further work.

MayBeLoadMessageFile could be moved into Msg2Comment in most cases, and 
again a quick check (or inline) can prevent calling this subroutine at all.

DoDi



More information about the fpc-devel mailing list