You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JS decimal readers walk Base helpers for every leading zero #1674
Long zero prefixes go through the recursive Base readers. Nat.read also trims and measures the string before reading it. A bounded Char-aware digit loop can do this without those calls; empty input, non-digits and overflow must still return None.
On e5527d5 (Bend 2.0.37), Linux x64, Bun 1.3.13, I measured actual exported module calls. The table uses medians of seven interleaved before/after rounds with identical input, including module conversion; no standalone JS reference is substituted for the patched compiler.
The local implementation passed 2936 API checks covering full-width U32 Chars, all 1024 astral scalars with low unit DC00, first-class references, and numeric bounds. Existing string/read programs and a new packed-Char fixture also ran on JS and native C. These are local workloads, not a general speed guarantee. No parser, kernel or cap change is needed.
Activity