News for hackers. Stuff that matters.
Re:The Performance Impact of C++'s `final` Keyword by wiml on Monday April 22, 2024 @02:32PM (#40117297)
If your runtime environment has dynamic linking, then the LTO pass can't always be sure that a subclass won't be introduced later that overrides the method.
Re:The Performance Impact of C++'s `final` Keyword by gpderetta on Monday April 22, 2024 @03:23PM (#40117807)
You can tell the compiler it is indeed compiling the whole program.
Re:The Performance Impact of C++'s `final` Keyword by i80and on Monday April 22, 2024 @02:47PM (#40117460)
Aha! That makes sense. I wasn't thinking of that case. Thanks!