3 ms·
That'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 hav
by garethrowlands 7y ago
That'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.