Performance dmd vs ldc2
wendlec at tcd.ie
Wed Jul 31 01:44:28 PDT 2013
On Tuesday, 30 July 2013 at 16:43:52 UTC, John Colvin wrote:
> Are you sure that ldc hasn't actually just optimised away the
> whole of parse()?
> Check to asm to be sure.
I've checked the asm output, as you suggested. Turns out that the
DMD version has 94,220 lines and calls parse() for the first time
on line 3278 like so:
call _D10xmlparser25parseFZv at PC32
The LDC version has 14,347 line and calls parse() for the first
time on line 155 like so:
However, I'm no expert on asm so it's anyone's guess but mine.
But I'm willing to learn.
More information about the digitalmars-d-ldc