3 ms·
If you don't regularly run your program with the same optimizations you're using on the final product, you haven't tested it. And if your automatic optimization
by astrange 11y ago
If you don't regularly run your program with the same optimizations you're using on the final product, you haven't tested it. And if your automatic optimizations are so slow that you can't just re-run them all the time, you can't tune what you're sending into them in the first place.
That's for classic compilation, but these days all the good stuff is in JIT on a mobile device, and there your optimizer really can't afford to waste your time.
- comex 11y agoIt is? iOS has always used ahead-of-time compilation and Android switched semi-recently from the JIT-based Dalvik to the AOT Android Runtime. The only important JIT left is in the browser...
- astrange 11y agoRight, but browsers are pretty important, and a lot of apps are just web views. (Can't remember if JIT works in web apps on iOS these days though.) They also load all that crazy ad tracking javascript from everywhere, optimizing that on every page load has power costs!