News for hackers. Stuff that matters.
Re:The cost of dynamic vs. static dispatch in C++ by alextingle on Thursday December 05, 2013 @01:17PM (#6856013)
Yes, of course. But the real challenge is to determine that it's your virtual indirection that's causing the problem. Once you know what's causing the problem, fixing it is (relatively) easy.

The danger is that benchmarks like this encourage naïve programmers to use complex constructs as a matter of course, when simpler would usually be better. "Premature optimisation is the root of all evil" and all that...

There are no comments on this comment yet.