3 ms·
> For functions that can be fast or slow, the decision as to whether to inline or not depends on the input. This is one area where modern JIT runtimes can domi
by bob1029 9mo ago
> For functions that can be fast or slow, the decision as to whether to inline or not depends on the input.
This is one area where modern JIT runtimes can dominate static compilations. Dynamic profile guided optimization adjusts things like inlining based upon how the live workload actually performs. You don't need to have any data ahead of time.
There are very few cases where I would trade this sort of long tail optimization capability for something like faster startup. Cold start happens once. If the machine rarely stops, it's not very relevant to the typical operational concerns.
- 3836293648 9mo agoIt absolutely theoretically can, but afaik neither V8 or the JVM can actually do it to a level where it outperforms the static optimisations of GCC or LLVM. Is this still the case or am I going on outdated info on the matter?