[Optimization] Speculatively not calling invariant on class objects
Iain Buclaw via Digitalmars-d
digitalmars-d at puremagic.com
Wed Aug 12 06:28:43 PDT 2015
On Wednesday, 12 August 2015 at 12:48:53 UTC, Kagamin wrote:
> Remove allocation?
My test isn't good enough for that. With scoped classes, the
backend can actually devirtualize, inline and DCE pretty much
everything except the one side effect I added.
This is because it knows how the vtable is initialized, unlike
with GC'd classes with _d_newclass. There is another
optimization opportunity here...
Regards
Iain
More information about the Digitalmars-d
mailing list