4 ms·
A Just-in-time compiler has to find a balance between compilation time (which slows down your program or makes it slower to start) and optimization quality. So
by ygra 8y ago
A Just-in-time compiler has to find a balance between compilation time (which slows down your program or makes it slower to start) and optimization quality. So a lot of optimizations that are OK in C++ where you have lots of time because of AOT compilation are not feasible for a JIT.
Things could be different by now, though, with RyuJIT and tiered compilation. That article is quite old (although processors still work the same, just with larger caches).
- monocasa 8y agoConstant propagation is pretty cheap though and is a common JIT compiler technique.