3 ms·
> […] "the compiler has insufficient information to achieve ideal optimization because some things can only be known at runtime." This is where the profile gui
by inkyoto 4y ago
> […] "the compiler has insufficient information to achieve ideal optimization because some things can only be known at runtime."
This is where the profile guided optimisation comes in – for statically compiled languages, with a caveat being not always straightforward to come up with a set of inputs that will trigger an execution of all possible code paths. One solution is to provide the coverage specifically for the performance critical code paths and let the rest just be.