[fpc-devel] Messages overhead

Hans-Peter Diettrich DrDiettrich1 at aol.com
Thu Jul 15 15:57:30 CEST 2010

Florian Klaempfl schrieb:

>>>> IMO compiler messages slow down compilation a lot.
>>> How do you know this, did you benchmark or is it just your opinion?
>> Common knowledge, proved by experience.
> Please profile the compiler first, people did this already.

This is what I'm going to do now.

Does there exist some profiling code already, or do I have to reinvent 
the wheel?

>> The message ID has to be re-encoded in a way, that allows to determine
>> e.g. the message level immediately. All this currently is done only
>> after text substitution, by inspection of the returned string.
> This cannot be done because people should have the chance to use custom
> error files to override message verbosities.

Couldn't this be delegated to an custom message handler?


More information about the fpc-devel mailing list