The true price of virtual functions in C++ Posted on February 21, 2021February 24, 2021Author Ivica BogosavljevićPosted in PerformanceLeave a ReplyWe 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.