News for hackers. Stuff that matters.
Re:Operation Costs in CPU Clock Cycles by exDM69 on Saturday November 12, 2016 @05:38AM (#12937344)
Virtual function / function pointer calls can still have a big performance impact, especially if it could be inlined away.

Compare C standard library qsort with C++ std::sort performance for sorting integers. The difference is huge in favor of std::sort. If you write your own qsort and put it in a header file so the indirect calls can be inlined, they should be equal.

There are no comments on this comment yet.