News for hackers. Stuff that matters.
Re:The Performance Impact of C++'s `final` Keyword by bdjsiqoocwk on Tuesday April 23, 2024 @05:22AM (#40130080)
Whats devirtualization in C++?

Funny how things work. From working with Julia I've built a good intuition for guessing when functions would be inlined. And yet, I've never heard the word devirtualization until now.

Re:The Performance Impact of C++'s `final` Keyword by saagarjha on Tuesday April 23, 2024 @06:03AM (#40130238)
In C++ virtual functions are polymorphic and indirected, with the target not known to the compiler. Devirtualization gives the compiler this information (in this case a final method cannot be overridden and branch to something else).