logoalt Hacker News

bob1029today at 9:49 AM0 repliesview on HN

> 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.