virtual method pointer

deadalnix deadalnix at gmail.com
Thu May 3 13:57:01 PDT 2012


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.


More information about the Digitalmars-d mailing list