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

romshark / icumsg / 38138386980
98%

Build:
DEFAULT BRANCH: main
Ran 11 Oct 2026 12:12PM UTC
Jobs 1
Files 7
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

11 Oct 2026 12:08PM UTC coverage: 97.692% (+0.005%) from 97.687%
38138386980

push

github

romshark
fix: Find duplicate options in linear time

Check the name of each select and =n option against the names seen so
far instead of against all sibling options, which takes quadratic time
in the number of options. Search the first 8 names linearly and keep
any further names in a map, so that the few options of a typical
argument cost no more than before:

    {n, select, o0{x} o1{x} ... o39999{x} other{x}}  (380 KiB)

    Before: 3.7 s
    After:  6 ms

A plural with 40,000 =n options takes 5 ms instead of 3.7 s.
Add a select with 1000 options to BenchmarkTokenize.
It takes 0.08 ms instead of 2.6 ms,
and the other inputs show no difference.

When an argument repeats more than one name,
report the first option that repeats an earlier name:

    {n, select, a{1} b{1} b{1} a{1} other{1}}

    Before: ErrDuplicateOption at byte 27
    After:  ErrDuplicateOption at byte 22

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

1778 of 1820 relevant lines covered (97.69%)

911.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38138386980.1 11 Oct 2026 12:12PM UTC 7
97.69
GitHub Action Run
Source Files on build 38138386980
  • Tree
  • List 7
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38138386980
  • 53df364d on github
  • Prev Build on main (#38136029359)
  • Next Build on main (#38141687490)
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