3 ms·
Virtual function / function pointer calls can still have a big performance impact, especially if it could be inlined away. Compare C standard library qsort wit
by exDM69 10y ago
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.