Yet another strike against the current AA implementation
Daniel Keep
daniel.keep.lists at gmail.com
Mon Apr 27 04:07:12 PDT 2009
Michel Fortin wrote:
> On 2009-04-27 00:50:23 -0400, dsimcha <dsimcha at yahoo.com> said:
>
>> Output:
>> Direct: 2343
>> Virtual: 5695
>> opApply: 3014
>
> Nice.
>
> Isn't there room for optimisation on the compiler side though? I mean,
> the compiler could inline opApply, and while doing so it could notice
> that the delegate is constant and inline it too. I suspect that adding
> this optimisation would put opApply at the same performance level than
> ranges.
Inlining does not automatically make things faster. Case in point:
downs' raytracer stacy actually slows down when you inline certain
parts. The penalty of not fitting in cache was overwhelming the penalty
from using virtual methods.
-- Daniel
More information about the Digitalmars-d
mailing list