by haberman · 16y ago · 0 comments
What's your problem with this answer? Non-virtual methods can be easily inlined, whereas virtual methods (almost always) require:
1. a load (though a hoistable one) from the vtable
2. an indirect branch
3. register re-allocation
4. function call overhead (standard prologue/epilogue)