Re:The Performance Impact of C++'s `final` Keyword
by account42 on Tuesday April 23, 2024 @09:11AM
(#40131575)
You don't need a JIT to do whole program optimization.
[ Parent
| on HN ]
Re:The Performance Impact of C++'s `final` Keyword
by samus on Tuesday April 23, 2024 @01:15PM
(#40134421)
AOT whole program optimization has two limits:
* It is possible with `dlopen()` to load code objects that violate the assumptions made during compilation.
* The presence of runtime configuration mechanisms and application input can make it impossible to anticipate things like the choice of implementations of an interface.
One can always strive to reduce such situations, but it might simply not be necessary if a JIT is present.