We should deprecate -release

H. S. Teoh hsteoh at qfbox.info
Thu Jul 18 01:31:38 UTC 2024


On Wed, Jul 17, 2024 at 11:56:44PM +0000, Quirin Schroll via Digitalmars-d wrote:
> On Wednesday, 17 July 2024 at 21:19:31 UTC, H. S. Teoh wrote:
> > I know it's not nice to admit that dmd does not generate optimal
> > executables.  I wish I could say otherwise, but the facts are the
> > facts.  I've consistently gotten 30% performance boosts in my
> > program just by compiling with ldc2 instead of dmd (not even with
> > -O2, just plain ldc2 is enough to give you a significant boost).
> > With ldc2 -O2, I get about 40% performance boost, sometimes up to
> > 50% depending on what the program does.  If you're trying to win
> > benchmarks, having people use dmd is the sure way NOT to win them.
> > You want them to use ldc2, period. You do NOT want them to use dmd,
> > except when you're trying to compete in the compile-speed category.
> 
> If that is true, DMD should focus on development and debugging
> experience.
[...]

Don't take my word for it.  Measure it yourself.  Take any D benchmark
and compile with dmd -release -O -inline, then compile with ldc2 -O2.
Compare the difference.  You'll see.


T

-- 
When you breathe, you inspire. When you don't, you expire. -- The Weekly Reader


More information about the Digitalmars-d mailing list