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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…