a) How can you make standard-OOP-like method dispatch
faster than vtables?
He doesn't claim you can: he just points out that it still adds overhead. a) How can you make standard-OOP-like method dispatch
faster than vtables?
He doesn't claim you can: he just points out that it still adds overhead.If you don't use polymorphism, you don't need virtual member functions, in which case you don't pay the cost of a vtable.
This is one of the key tenets of C++: You pay for what you use, and only what you use.