If that is the scenario that you care about, then you can use profile guided optimization in statically compiled languages.
Clang has instructions on how to do so here: https://clang.llvm.org/docs/UsersManual.html#profile-guided-...
Clang has instructions on how to do so here: https://clang.llvm.org/docs/UsersManual.html#profile-guided-...
Besides, people rally don't like that warming-up period. But it's not the current bottleneck.
Anyway, JIT has a great potential. Just not for desktop software, or network services, or your trading app. It can be great for scientific computing, for example. But that's potential; currently it's not any good on practice.
Also the large majority of modern Windows software is actually written in .NET, with small C++ pieces.