P.S.: A) The more time is spent inside the virtual method, the less noticeable the impact of the lookup. B) If you call one virtual method often inside a single function, compilers typically cache the method pointer in some register.
-- Marco
P.S.: A) The more time is spent inside the virtual method, the less noticeable the impact of the lookup. B) If you call one virtual method often inside a single function, compilers typically cache the method pointer in some register.
-- Marco