Re:The cost of dynamic vs. static dispatch in C++
by pmjordan on Thursday December 05, 2013 @01:13PM
(#6855990)
The calls into jump tables are generally static, so the jump table itself can be prefetched. The jump table code is then a regular function pointer call, which is also monomorphic and so can be reliably predicted. I'd expect the impact to be small compared to a regular monomorphic function pointer call.
[ Parent
| on HN ]
There are no comments on this comment yet.