One could possibly refactor elements of the compiler, and the improvements to the optimizer might also help in places. I wouldn't call it a major priority though, although I will make suggestions if I spot anything. Granted, the niche that I've crafted for myself is assembly language optimisation, which is not appropriate for cross-platform source code.
Gareth aka. Kit
On Mon 21/05/18 16:55 , Jonas Maebe sent:
Florian Klämpfl wroteAm 18.05.2018 um 17:32 schrieb Ondrej Pokorny:
>
> I observe that FPC trunk compiler is about 65-70% (factor 1.65-1.7)
slower than FPC 3.0.4 compiler.
Show quoted text 7 lines
>
> E.g. building Lazarus IDE takes on my machine:
> 1:00 with FPC 3.0.4
> 1:40 with FPC trunk
>
> Do you observe the same? Any hints why?
New features? E.g. helpers made fpc a lot slower (or are they already in
3.0.x?) Optimizer improved
and made the compiler slower etc.
The new typed constant generator is also much slower than the old "just emit sequences of bytes" approach. On the other hand, it's much less error prone (no more alignment issues), much more portable and higher level. It's been in trunk for four years already though.
Jonas