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

comunica / json-event-parser.js / 32377107465
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: claude/jsonld-parser-backend-analysis-x6io0y
DEFAULT BRANCH: master
Ran 20 Aug 2026 01:56PM UTC
Jobs 4
Files 4
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

20 Aug 2026 01:55PM UTC coverage: 100.0%. Remained the same
32377107465

Pull #22

github

claude
Speeds up string parsing by copying plain runs in bulk

Strings are the bulk of a typical JSON-LD document, and each character
was appended individually: a call and a bounds check per byte. Once
inside a string, scan ahead for the whole run of plain characters and
copy it in one go.

Also drops the Buffer.byteLength call on every string token. It only fed
this.offset, and re-measured a string that had just been built, so the
byte count is now accumulated as the string is appended instead. The
semantics are unchanged, including the existing inaccuracy for escaped
strings that #12 tracks.

The tokenizer is now faster than @bergos/jsonparse on every workload
except the 0.4KiB one, where per-parse setup dominates:

                       before    after   vs jsonparse
  person                0.025    0.028          1.27x
  sparql-init           0.049    0.045          0.88x
  toRdf-manifest        1.660    1.430          0.62x
  dbpedia-expanded    110.808   85.349          0.53x

Plain characters no longer reach appendStringChar, which left its buffer
flush reachable only through escape sequences, so a large token built
entirely from escapes was added to cover it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EDHYSxPkD1cp78Qzea6DmQ
Pull Request #22: Speed up string parsing by copying plain runs in bulk

323 of 323 branches covered (100.0%)

Branch coverage included in aggregate %.

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

500 of 500 relevant lines covered (100.0%)

5176817.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-18.x - 32377107465.1 20 Aug 2026 01:56PM UTC 4
100.0
GitHub Action Run
2 run-12.x - 32377107465.2 20 Aug 2026 01:57PM UTC 4
100.0
GitHub Action Run
3 run-16.x - 32377107465.3 20 Aug 2026 01:56PM UTC 4
100.0
GitHub Action Run
4 run-14.x - 32377107465.4 20 Aug 2026 01:57PM UTC 4
100.0
GitHub Action Run
Source Files on build 32377107465
  • Tree
  • List 4
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Pull Request #22
  • PR Base - master (#32374798129)
  • Delete
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