<HTML>
<style> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }</style>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.<br>
<div><br>
</div><div>Gareth aka. Kit<br>
</div> <br>
<br>
<span style="font-weight: bold;">On Mon 21/05/18 16:55 , Jonas Maebe jonas@freepascal.org sent:<br>
</span><blockquote style="BORDER-LEFT: #F5F5F5 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">On 21/05/18 17:42, Florian Klämpfl wrote:
<br>
<span style="color: rgb(102, 102, 102);">> Am 18.05.2018 um 17:32 schrieb Ondrej Pokorny:
</span><br>
<span style="color: rgb(102, 102, 102);">>>
</span><br>
<span style="color: rgb(102, 102, 102);">>> I observe that FPC trunk compiler is about 65-70% (factor 1.65-1.7) slower than FPC 3.0.4 compiler.
</span><br>
<span style="color: rgb(102, 102, 102);">>>
</span><br>
<span style="color: rgb(102, 102, 102);">>> E.g. building Lazarus IDE takes on my machine:
</span><br>
<span style="color: rgb(102, 102, 102);">>> 1:00 with FPC 3.0.4
</span><br>
<span style="color: rgb(102, 102, 102);">>> 1:40 with FPC trunk
</span><br>
<span style="color: rgb(102, 102, 102);">>>
</span><br>
<span style="color: rgb(102, 102, 102);">>> Do you observe the same? Any hints why?
</span><br>
<span style="color: rgb(102, 102, 102);">> New features? E.g. helpers made fpc a lot slower (or are they already in 3.0.x?) Optimizer improved
</span><br>
<span style="color: rgb(102, 102, 102);">> and made the compiler slower etc.
</span><br>
<br>
The new typed constant generator is also much slower than the old "just
<br>
emit sequences of bytes" approach. On the other hand, it's much less
<br>
error prone (no more alignment issues), much more portable and higher
<br>
level. It's been in trunk for four years already though.
<br>
<br>
<br>
Jonas
<br>
<br>
_______________________________________________
<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<br>
<a target="_blank" href="<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>"><span style="color: red;">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</span></a>
<br>
<br>
<br>
</blockquote></HTML>