3 ms·
Other than startup time, isn't AoT more like pessimization, as runtime data can't be used to optimize performance?
by vardump 7y ago
Other than startup time, isn't AoT more like pessimization, as runtime data can't be used to optimize performance?
- vips7L 7y agoRam usage is a big one for AOT java.
- garethrowlands 7y agoThat's true in Javascript because its highly dynamic nature isn't amenable to static analysis. But in general, AoT is usually a win, even though it doesn't have access to runtime data. C and Fortran are still the gold standard for performance, for example. One reason is that JITs are time constrained, even in long-running processes. Another is these languages are designed for AoT compilation. And there are ways for AoT compilation to have some, albeit limited, access to runtime data. One way is 'profile guided optimisation'. Another is inserting probes for different types of CPU.