Getting rid of dynamic polymorphism and classes
F i L
witte2008 at gmail.com
Sat Nov 10 10:27:39 PST 2012
Tommi wrote:
> If virtual method calls are really that fast to do, then I
> think the idiom in the code snippet of my first post is
> useless, and the idiom they represent in that video I linked to
> is actually pretty great.
Virtual functions have other performance limitations, naming they
can't be inlined. So small virtual calls do have a big impact if
used often, especially (so I hear) on ARM processors which don't
have as advanced branch-prediction machinery as x86 (again, I'm
just repeating what I've heard before).
More information about the Digitalmars-d
mailing list