GDCs emitted code is crazy fast

Iain Buclaw ibuclaw at gdcproject.org
Mon Aug 19 10:54:09 UTC 2019


On Mon, 19 Aug 2019 at 10:00, Daniel Kozak via D.gnu
<d.gnu at puremagic.com> wrote:
>
> On Monday, 19 August 2019 at 03:47:04 UTC, James Blachly wrote:
> > I got around to finally compiling my project (processing high
> > throughput sequencing data) and found GDC compiled code
> > executed TWICE as fast as LDC compiled code, which itself was
> > faster than DMD. I am truly surprised.
> >
> > Can't test all my code yet as GDC 8.3.0 doesn't include support
> > for assoc array require. I hope that there are plans for
> > convenient binary installs (rather than through package
> > managers which tend to be outdated, and cannot be installed on
> > managed systems) as there are with DMD and LDC.
> >
> > Kudos to the GDC team.
>
> It is possible, to share your code, so any one else could try why
> is gdc faster than ldc? From what I can say, there is almost
> always a way to make ldc as fast as gdc (sometimes you need to
> pass some specific args to cimpiler or tweak a code a little bit)

Optimal code sometimes needs a bit of coercing.  You shouldn't need to
pass weird options though.

-- 
Iain


More information about the D.gnu mailing list