Re:The cost of dynamic vs. static dispatch in C++ (2013)
by bit_razor on Sunday March 01, 2015 @01:44PM
(#9128328)
My beef with this article is that it misleads you believe that need CRTP is the only way to eliminate vtable lookups on interface calls. It left me wondering how CRTP compared to invoking DynamicImplementation::tick() directly. The article is actually quite great otherwise.
Or should we only ever benchmark the entire software stack at once, even though people do in fact sometimes use CRTP and virtual functions in the same situations?