Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
226 views
in Technique[技术] by (71.8m points)

performance - Delphi compiler: Compilation time grows non-linear with the amount of code

I have a project that has 188200 lines (code size: 5.2MB) that builds in 4.0 sec.

Another project that is 4.8x larger (900900 lines, code size 22MB) compiles in 70.8 sec (similar speed on 64/32bit compiler).

Since the Delphi compiler parses the code in one step, why the compilation speed is not linear (or close to linear) with the amount of code?
70sec is quite far away from the speed promised by Embarcadero (5 sec).


Using Delphi Sydney (that is v10.4.1 for those like me that lost track of which Delphi is which).

CPU: AMD FX 4GHz 8cores
RAM: 32GB (fast ram)
SSD: Samsung 840EVO
No antivirus (except Windows Defender)
Everything compiles in one code. The other 7 cores are free.

question from:https://stackoverflow.com/questions/65830789/delphi-compiler-compilation-time-grows-non-linear-with-the-amount-of-code

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...