Using final in C++ to improve performance -- Niall Cooling
When having the "last word" makes stuff go faster...
Using final in C++ to improve performance
by Niall Cooling
From the article:
The
finalspecifier was introduced in C++11 to ensure that either a class or a virtual function cannot be further overridden. However, as we shall investigate, this also allows them to perform an optimization known as devirtualization, improving runtime performance.

As Crocodile Dundee famously said, "That's not a loop, that's a loop." Just programmers having fun:
On November 15, Bjarne Stroustrup will be giving a live talk available via YouTube:
Playing the classics...
Visual Studio 2022 17.4 is available: