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

moonbitlang / core / 6760
89%

Build:
DEFAULT BRANCH: main
Ran 24 Sep 2026 03:26PM UTC
Jobs 1
Files 448
Run time 2min
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

24 Sep 2026 03:23PM UTC coverage: 89.684% (+0.03%) from 89.652%
6760

push

github

web-flow
perf(regex): two-level symbol table for non-ASCII input (#4268)

`Table::map` served ASCII from a direct table and resolved every code unit
>= 128 with a binary search over `(lo, hi, symbol)` triples, so patterns
with many classes paid ~10 ns per non-ASCII character. The table is now
two-level: one `index` entry per 256-code-unit block gives the offset of
that block's 256 symbols in `blocks`, and blocks whose 256 units all map to
one symbol share a physical block per symbol, so the table stays small.
Block 0 is always emitted first, so code units below `min(256, ub + 1)`
are a single load; above that, `map` checks `c <= ub` (panicking as the
old search did) and does two dependent loads with no search.

Native, 200k-char CJK scans: 40-class alternation 1.97 ms -> 0.24 ms,
`[[:digit:]]+` 446 us -> 222 us; js 3.69 -> 1.07 ms and 1.15 -> 1.07 ms.
ASCII scans unchanged. No interface change. Part of #4263.

Adds unit tests for run numbering, block boundaries, materialized blocks,
byte-sized and unaligned upper bounds, and the bound checks.

Codex CLI review (two rounds; the first caught that `ub` inside a block was
not enforced, now fixed): "The P2 is resolved: fast_limit and the
upper-bound guard prevent access beyond ub, including padded entries. The
added tests cover all three regression cases. No additional correctness
regressions found."

Signed-off-by: Codex CLI <codex@openai.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>

24 of 24 new or added lines in 2 files covered. (100.0%)

16474 of 18369 relevant lines covered (89.68%)

333752.12 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6760.1 24 Sep 2026 03:26PM UTC 448
89.68
GitHub Action Run
Source Files on build 6760
  • Tree
  • List 448
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e7495128 on github
  • Prev Build on main (#6750)
  • Next Build on main (#6769)
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