On Thu, 18 Sep 2014 08:57:20 -0400, Kagamin <[email protected]> wrote:
On Tuesday, 16 September 2014 at 00:33:47 UTC, Steven Schveighoffer
wrote:
The cost for this is tremendous. You may as well not use classes.
Looks like ldc has a separate option to turn off invariants.
That's a good thing. I'm actually thinking this should be in DMD as well.
invariants, always called by default, when almost no object defines one,
is really costly. It's also a virtual call, which means any inlining is
not possible.
-Steve