Tüm sürümler v0.1.42122 Kas 2026Görüntü oluşturma, JavaScript ve JIT, Ağ Akış

Sürüm notları İngilizce yazılmıştır.

Calls from loops run inside the loop's own machine code

A speed release for the engine's compilers. A loop that calls a small function over and over now carries that function inside its own machine code, including small wrappers that pass an array the page keeps. Code with try and catch blocks now runs in the fastest tier. Recorded real pages spend about the same time in script as in 0.1.420: one encyclopedia page is 0.6% faster, and one news page is about 0.5% slower, the expected cost of compiling its error handling.

31 -> 0.2 ms400,000 calls of a small wrapper from a loop
2.6 -> 2.2 msA loop that throws and catches
Öne çıkanlar2

Small functions called from loops cost almost nothing

Pages often call a tiny helper thousands of times from one loop: a wrapper that hands an array to another function, a getter, a counter. Each call used to leave the loop's machine code, set up a call and come back. The engine now copies the helper, and the function it calls, into the loop's own code, so the loop runs straight through. If the helper is replaced, or its array changes in a way the copy did not expect, the loop falls back to a normal call and gives the same answer.

400,000 calls of a small wrapper from a loop31 -> 0.2 ms

try and catch run in the fastest tier

A function with a try and catch block used to stay in a slower tier. It now compiles in the optimizing tier, and a throw caught in the same function stays in machine code. Small functions start on the quick tier and move up only once they are busy, and very large ones are never given the slow optimizing compile, so a page's start-up code does not pay for it.

A loop that throws and catches2.6 -> 2.2 ms

Neler değişti

9 değişiklik
  1. JavaScript ve JITSpeed: a loop that calls a top-level function runs that function's machine code directly instead of going through the interpreter's call. Switch: FLOATI_NO_ROOT_FUSE.
  2. JavaScript ve JITSpeed: compiled code writes an outer function's variable itself when the old value holds no reference. Switch: FLOATI_NO_OUTER_STORE_CELL.
  3. Görüntü oluşturmaSpeed: functions whose try blocks only catch compile in the optimizing tier, and a throw caught in the same function stays in machine code. Switch: FLOATI_NO_SSA_TRY.
  4. JavaScript ve JITSpeed: compiled code enters a top-level function it calls without a stop on the way. Switch: FLOATI_NO_ROOT_FUSE_ENTRY.
  5. JavaScript ve JITSpeed: the optimizing tier reads the items and length of an array passed in without a call. Switch: FLOATI_NO_THERMAL_INLINE_VIEW.
  6. JavaScript ve JITSpeed: a loop copies in a small wrapper even when the function it calls has its own loop or reads arrays. Switch: FLOATI_NO_NESTED_INLINE_LOOPS.
  7. JavaScript ve JITSpeed: a wrapper that passes an array the page keeps in a variable is copied into the loop, which reads the array directly. Switches: FLOATI_NO_NESTED_UPVALUE_FWD, FLOATI_NO_INLINE_ARR_CELLS.
  8. AğSpeed: small functions with try and catch start on the quick tier and move up only when busy, and functions over 256 steps never get the slow optimizing compile (a 19 ms compile on an encyclopedia page's module loader is gone). Switch: FLOATI_NO_SSA_TRY_RENT.
  9. AğFix: a function with try and catch that the optimizing tier cannot compile, and that keeps catching, hands its loop back to the quick loop tier as other functions do (a test loop 98 -> 2.2 ms). Switch: FLOATI_NO_SSA_DECLINE_RETIRE.
v0.1.421 sürümünden bu yana her şey tek yerde

Sürümler

v0.1.0 - 0.1.9 · 10 Tem 2026418v0.1.427 · 25 Kas 2026