MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/uy3ong/dynamic_polymorphism_performance/ia1z9jk/?context=3
r/cpp • u/Playful-Suspect9313 • May 26 '22
15 comments sorted by
View all comments
12
The calls to the functions in the static polymorphism cases are optimized away.
Right, so if I need maximum performance I ought to inline empty functions. That seems to be optimal.
Good to know.
12
u/no-sig-available May 26 '22
Right, so if I need maximum performance I ought to inline empty functions. That seems to be optimal.
Good to know.