On 11/03/2012 11:44 AM, David Nadlinger wrote:
the only really good answer to this question is profiling.
Sure. I was wondering if there was a known issue (as e.g. floating point is or was a known issue with DMD).
However, one guess would be that the LDC build system currently creates a debug build of druntime and Phobos by default. This is probably enough to create a significant slowdown in many applications, and AA-heavy code will probably call quite a few druntime functions.
Hmmm, possible, but other code of mine (just using regular arrays) doesn't show any comparable slowdown, in fact the LDC-compiled version is very competitive with GDC. That's why I wondered if it was something specific to AA.
To test whether this is really the cause for the slowdown, you can just modify the D_FLAGS variable in CMake accordingly, e.g. set it to -d;-O3;-release.
I'll give it a go and get back to you. :-) --
