Faster Virtual Method Dispatch

Craig Black cblack at ara.com
Sun Apr 23 15:07:50 PDT 2006


"Hasan Aljudy" <hasan.aljudy at gmail.com> wrote in message 
news:e2gr8j$18r2$1 at digitaldaemon.com...
> I'm far from being an expert .. but I thought vtable lookups involve two 
> or three jump/call instructions at the assembly level; at least that's the 
> impression I got from stepping through code in the VC++ debugger.

>From one non-expert to another, I have no idea how many assembly language 
instructions are involved.  However, I have been informed by some very 
experienced programmers that virtual methods don't mesh well with 
pipelining.  This is the main performance issue with calling a virtual 
method.

-Craig 





More information about the Digitalmars-d mailing list