Re:Programming Your Own Language in C++
by beached_whale on Sunday August 14, 2016 @09:24PM
(#12288102)
Generally the vtable is not much slower. I believe around the cost of an extra pointer derefence vs the alternative of branching. Also the compiler can sometimes optimize the cost to be the same as a normal call(e.g. final)
[ Parent
| on HN ]
There are no comments on this comment yet.