Getting rid of dynamic polymorphism and classes

Marco Leise Marco.Leise at gmx.de
Sat Nov 10 01:30:25 PST 2012


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



More information about the Digitalmars-d mailing list