The true price of virtual functions in C++ Posted on February 21, 2021April 8, 2023Author Ivica BogosavljevićPosted in C++ Performance, Performance12 RepliesWe talk about virtual functions, and how the performance of software with virtual functions depends on many factors: the cost of additional instructions, cache misses, branch prediction misses, instruction cache misses and compiler optimizations.