Re:The Performance Impact of C++'s `final` Keyword
by oasisaimlessly on Tuesday April 23, 2024 @03:34PM
(#40136221)
> In classes with larger inheritance chains, you can easily have more than one pointer dereferencing taking place before you call a virtual members function.
This is not a thing in C++; vtables are flat, not nested. Function pointers are always 1 dereference away.
This is not a thing in C++; vtables are flat, not nested. Function pointers are always 1 dereference away.