The optimizing compiler works off the main thread
A speed release for the engine's compilers and memory. The fastest compiler tier now builds its machine code on a background thread while the page keeps running, so a long compile no longer holds up a frame. Functions that call themselves inside loops, the way element-tree comparisons do, keep their constants where they are used. Memory from big structures that die together is handed back in smaller steps, and flexible layouts reuse the measuring work they already did. Recorded real pages spend about 2% less time in script, style and layout than in 0.1.422, with no page slower.
Compiling on a background thread
When a function gets hot, the engine builds a description of it on the page's own thread, then hands that description to a background thread for the slow part: optimizing, choosing registers and writing machine code. The page keeps running the function's quicker first version meanwhile, and the new code is put in place the next time the function runs. Code with try blocks and code that leaves the fast path still compiles on the page's thread, where it must.
Constants stay inside loops that call
The optimizer used to move every constant out of a loop to the start of the function. In a loop that calls a function, those values then had to be saved and reloaded around each call, on every call. A loop that calls now keeps its constants next to where they are used.