This is actually similar to how .NET works if you choose to do ahead-of-time compilation during installation. While the optimiser probably has room for the improvements you suggest and others, it does whole program optimisation rather than per method, and the JIT is only invoked if necessary.
|