SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Technology Stocks : BORL: Time to BUY!

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: David R who wrote (8265)12/29/1997 3:14:00 AM
From: Kashish King  Read Replies (1) of 10836
 
With regards to VTables, if you have run-time binding (aka virtual funtion calls) you will experience about a 10% hit on VTable lookup.

That's nonsense. Who is feeding you this stuff? First of all there is no "lookup." In those situations where the compiler can't figure out the precise type of the object, it does an indirect call through an array of pointers to functions. That's one level of indirection, there is no "lookup" and you would be surprised how often an inline virtual function gets expanded.

In any event, that's not why the 10% hit theory is nonsense. The reason for that is much simpler. What percentage of time is the "potential" indirect call have relative to the overall execution time of even the lamest of lame functions? In general, what percentage might that average out to be? I think you are being led astray by some DOS hacking Visual Basic or COM guru that doesn't know C++ from shinola.
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext