www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Best Compiler for Performance

reply Kangoroo <kangoroo mail.xl> writes:
Which is better for performance and stability in the D language, 
GDC or LDC? Which one do you prefer for your projects? I know DMD 
includes the language's new features early but considering its 
slower performance, I am thinking of switching to an alternative 
compiler.
Dec 26 2023
next sibling parent Sergey <kornburn yandex.ru> writes:
On Tuesday, 26 December 2023 at 08:22:47 UTC, Kangoroo wrote:
 Which is better for performance and stability in the D 
 language, GDC or LDC? Which one do you prefer for your 
 projects? I know DMD includes the language's new features early 
 but considering its slower performance, I am thinking of 
 switching to an alternative compiler.
For macOS - use LDC (the only nice option for M1 for example) For Windows - again LDC (there was a project for GDC on Windows, but it is not in “just works” phase) For Linux - you can try both GDC and LDC. It depends on the type of the code/tools - which will be more convenient, both of them have similar performance.
Dec 26 2023
prev sibling parent "H. S. Teoh" <hsteoh qfbox.info> writes:
On Tue, Dec 26, 2023 at 08:22:47AM +0000, Kangoroo via Digitalmars-d wrote:
 Which is better for performance and stability in the D language, GDC
 or LDC? Which one do you prefer for your projects? I know DMD includes
 the language's new features early but considering its slower
 performance, I am thinking of switching to an alternative compiler.
My usual practice is to use DMD for development because of the lightning speed compile times, and LDC for release builds. T -- What's the difference between a 4D tube and an overweight Dutchman? One is a hollow spherinder, and the other is a spherical Hollander.
Dec 26 2023