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

Kikobeats / html-urls / 40592996506
99%

Build:
DEFAULT BRANCH: master
Ran 27 Oct 2026 10:13PM UTC
Jobs 1
Files 1
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

27 Oct 2026 10:12PM UTC coverage: 99.167% (-0.2%) from 99.375%
40592996506

push

github

web-flow
perf: dedupe links with a Set in a single pass (#106)

* perf: dedupe links with a Set in a single pass

Every link went through `concat(acc, link)`, which copies the accumulator,
and with `removeDuplicates` also through `findIndex` over it and then a final
`uniqBy` per attribute: O(n^2) in the number of links. Links are now pushed
into one array, and a Set holds the dedupe keys of links already kept. The
order and content of the output do not change: the first occurrence of each
key, in attribute order and then document order, as `uniqBy` kept it.
`lodash.get` in `getLink` and the per-link whitelist `concat` leave the hot
loop too.

A/B, base vs this commit, 5 alternating runs per side, median (ms):

| case                            | base  | change | delta  |
|---------------------------------|-------|--------|--------|
| 1000 links removeDuplicates off | 71.6  | 59.2   | -17.3% |
| 1000 links removeDuplicates on  | 68.8  | 55.1   | -19.9% |
| 8000 links removeDuplicates off | 112.4 | 59.0   | -47.5% |
| 8000 links removeDuplicates on  | 93.3  | 58.8   | -37.0% |

node v24.16.0, arm64, load avg 5.7-6.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: keep empty url attributes out of the result

An empty href was not in the suite, so a null check would publish the
base URL. matcher does not mutate the pattern list, so the copy is gone.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

38 of 39 branches covered (97.44%)

Branch coverage included in aggregate %.

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

81 of 81 relevant lines covered (100.0%)

72.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 40592996506.1 27 Oct 2026 10:13PM UTC 1
99.17
GitHub Action Run
Source Files on build 40592996506
  • Tree
  • List 1
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #40592996506
  • 7f1a0b46 on github
  • Prev Build on master (#40589330002)
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