Alle weergawes v0.1.3820 Jul 2026JavaScript en JIT Voer

Die weergawenotas is in Engels geskryf.

Loops that call a helper get compiled

This is the start of the single biggest step for JavaScript speed. Until now, the moment a hot loop called a function, Floati handed the whole loop back to the slower interpreter, because calling a function is a lot of hidden work: setting up a fresh scope, matching arguments to parameters, and jumping in and out. That is a real limit, because so much real code is loops that call a small helper (a bit of math, a hash mix, a transform). Floati now recognises when that helper is small and self-contained, a function that just returns a calculation on its inputs, and pastes its work directly into the loop, so there is no call to make at all. In our benchmark a loop calling such a helper a million times runs about three times faster. This first step is deliberately careful: it only does this for helpers that are pure arithmetic on their arguments (no side effects, no reaching outside themselves), and the instant a helper is anything more, or gets swapped out mid-loop, Floati falls straight back to the normal path with no change in results. More kinds of helper will follow. The full engine test suite passes identically with the speed-up switched on and off.

Wat verander het

3 veranderinge
  1. JavaScript en JITLoops that call a small helper function now compile. Until now, the moment a hot loop called a function Floati handed the whole loop back to the slower interpreter, and so much real code is a loop calling a little helper: a bit of math, a hash mix, a transform.
  2. JavaScript en JITFloati now recognises a small, self-contained helper that just returns a calculation on its inputs and pastes its work directly into the loop, so there is no call to make. A loop calling such a helper a million times runs about three times faster.
  3. JavaScript en JITDeliberately careful: only pure-arithmetic helpers with no side effects, and the instant a helper is anything more or gets swapped out mid-loop, Floati falls back with no change in results.
Alles sedert v0.1.38 op een plek

Weergawes

v0.1.0 - 0.1.9 · 10 Jul 2026418v0.1.427 · 25 Nov 2026