title: Multiple inheritance, virtual functions, and the virtual table in C++
body: <p>I know that vtable lookup for virtual functions is a lot slower than straight up function calling since the base class has to search through the vtable to get the derived function. I was wandering if it would be even slower if there were more derived layers of classes. Basically, my question is the following:</p>
  
  <p>Is <strong>Base</strong>-><strong>Derived</strong> (1 layer of inheritance) virtual function calling faster than
  <strong>Base</strong>-><strong>Derived1</strong>-><strong>Derived2</strong>-><strong>Derived3</strong>-><strong>DerivedEtc</strong> (multiple layers) virtual function calling?</p>