• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moonbitlang / core / 7057
88%

Build:
DEFAULT BRANCH: main
Ran 14 Oct 2026 09:33AM UTC
Jobs 1
Files 438
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Oct 2026 09:30AM UTC coverage: 89.459%. Remained the same
7057

push

github

bobzhang
fix(bigint): parse long decimal strings exactly on wasm-gc

from_string_dec in the wasm-gc backend sized its limb array with
len / DECIMAL_RATIO bits. DECIMAL_RATIO = 0.302 is an upper bound of
log10(2), which to_string needs, but 1 / 0.302 is below log2(10), so long
inputs got too few limbs and the carry out of the last limb was dropped.
Runs of nines were first misparsed at 3150 digits and at every length from
5983 on.

Size the buffer with BITS_PER_DECIMAL_DIGIT = 3.322, an upper bound of
log2(10), without the old slack limbs, and parse 9 digits per step while
multiplying only the limbs in use. This makes from_string 2x to 17x faster
on wasm-gc for 19 to 20000 digits. DECIMAL_RATIO keeps its value for
to_string.

Add regression tests for long inputs and every chunk length, a whitebox
check of the capacity bound up to 200000 digits, and from_string
benchmarks. The wasm-gc internal-representation snapshots show the tighter
limb arrays.

Fixes #4345

16761 of 18736 relevant lines covered (89.46%)

368728.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7057.1 14 Oct 2026 09:33AM UTC 438
89.46
GitHub Action Run
Source Files on build 7057
  • Tree
  • List 438
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 673edc7e on github
  • Prev Build on main (#7055)
  • Next Build on main (#7059)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc