Virtual Methods hurting performance in the DMD frontend

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 13 14:01:34 PDT 2016


On Monday, 12 September 2016 at 08:03:45 UTC, Stefan Koch wrote:
> On Sunday, 11 September 2016 at 21:48:56 UTC, Stefan Koch wrote:
>> Those are indirect class
> I meant indirect calls!
>
> @Jacob
>
> Yes that is my indented solution.
> Having a type-field in root-object.

A Small update on this.
When dmd is complied with ldc this problem seems to lessen.

However much of dmd's code especially in dtemplate could be 
simpified if it could just switch on a value. instead of doing 
method calls and null checks.


More information about the Digitalmars-d mailing list