GDCs emitted code is crazy fast

Daniel Kozak kozzi11 at gmail.com
Mon Aug 19 07:59:10 UTC 2019


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)


More information about the D.gnu mailing list