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

moonbitlang / core / 4850
91%

Build:
DEFAULT BRANCH: main
Ran 29 Jun 2026 06:40AM UTC
Jobs 1
Files 381
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

29 Jun 2026 06:39AM UTC coverage: 91.291% (+0.1%) from 91.195%
4850

push

github

web-flow
perf(strconv): skip underscore validation scan when none present (#3708)

`parse_double` calls `check_underscore` on every input to validate
underscore placement. That scan walks the whole string with a
multi-arm match over `StringView` slices -- each `.. rest` materializes
a new view and churns reference counts -- even though the vast majority
of numeric inputs contain no underscore at all.

Without any underscore the validation can never fail: every `break
false` arm requires a preceding underscore. Probe the raw code units
once with `contains_code_unit` (a tight loop with no sub-view
allocation) and skip the match loop entirely in that case.

Bench (parse_double, n=4096, native):
  fast digits:  137.8 µs -> 107.4 µs  (~22% faster)
  underscores:  170.1 µs -> 170.5 µs  (unchanged)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

1 of 1 new or added line in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

15221 of 16673 relevant lines covered (91.29%)

197065.44 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
75.0
-1.06% internal/strconv/strconv_int.mbt
Jobs
ID Job ID Ran Files Coverage
1 4850.1 29 Jun 2026 06:40AM UTC 382
91.31
GitHub Action Run
Source Files on build 4850
  • Tree
  • List 381
  • Changed 6
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 69f24ea8 on github
  • Prev Build on main (#4824)
  • Next Build on main (#4853)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc