r/cpp • u/david-alvarez-rosa • Apr 23 '26
Devirtualization and Static Polymorphism
https://david.alvarezrosa.com/posts/devirtualization-and-static-polymorphism/
81
Upvotes
r/cpp • u/david-alvarez-rosa • Apr 23 '26
View all comments
Show parent comment
7
u/Creator13 Apr 23 '26
But the performance implications of vtables are not common knowledge for every programmer ever either. Hell, even knowing about cache locality, prefetching, or pointer indirection are pretty obscure details if you come from, say, python.