Do deep inheritance trees degrade efficiency?

Anthra Norell anthra.norell at bluewin.ch
Wed Mar 18 09:09:00 EDT 2009


Would anyone who knows the inner workings volunteer to clarify whether 
or not every additional derivation of a class hierarchy adds an 
indirection to the base class's method calls and attribute read-writes. 
In C++, I suppose, a three-level inheritance would resolve into 
something like *(*(*(*(base_class_method ())))).

Frederic



More information about the Python-list mailing list