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
4
u/ts826848 Apr 23 '26
Eh, "basic" is in the eye of the beholder. People can come to C++ from a huge variety of backgrounds, and I would hardly be surprised if someone's previous programming experience didn't expose them to that kind of detail, particularly with respect to performance. Languages with heavily optimizing JITs can further confound things as well since those can do things to smooth over differences that the AOT compilers common in the C++ world can't.