virtual method pointer

Gor Gyolchanyan gor.f.gyolchanyan at gmail.com
Thu May 3 13:57:10 PDT 2012


Good point. That raises the question: How should I make the fastest
possible dynamic dispatch of this kind?

On Fri, May 4, 2012 at 12:57 AM, deadalnix <deadalnix at gmail.com> wrote:
> Le 03/05/2012 22:22, Gor Gyolchanyan a écrit :
>
>> That workaround is pretty obvious, but I can't afford to make an extra
>> call every time. This event system is supposed to be ultra-fast. Isn't
>> there a way to get to the vtable etry itself?
>
>
> Well :
> 1/ Such a trivial thing is surely inlined by any compiler with optimizations
> on.
> 2/ You can afford a virtual dispatch, but can't afford a function call ?
>
> I do think you are in case of premature optimizations here.



-- 
Bye,
Gor Gyolchanyan.


More information about the Digitalmars-d mailing list