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

nats-io / nats.js / 25320542466
90%

Build:
DEFAULT BRANCH: main
Ran 04 May 2026 01:02PM UTC
Jobs 0
Files 0
Run time –
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

pending completion
25320542466

push

github

web-flow
feat(obj): fast ingest + native sha256 backend (#394)

this PR enables fast ingest if available (2.14.0+) and also uses native sha256 when available.
Pure javascript js-sha256 used on browser or runtimes that don't have the native support.

resolves #362


bench at 1 GiB into a memory store (local nats-server 2.15.0-dev):
  js-sha + legacy publish:    101 MiB/s  (1.0x)
  js-sha + fast ingest:       122 MiB/s  (1.2x)
  native-sha + legacy publish: 526 MiB/s  (5.2x)
  native-sha + fast ingest:   1.16 GiB/s (11.7x)


- enable allow_batched on the OBJ stream when nc.info.api_lvl >= 4 (server
  2.14+); _put pipelines chunks via startFastIngest and commits the meta
  message with fi.last(). on abort, fi.end() + chunkSubj purge.
- ObjectStoreOptions.disableFastIngest opts out at bucket-create time.
- new obj/src/sha256.ts wraps a streaming sha256. setSha256Backend("js"|"native")
  selects between js-sha256 (default, browser-safe) and node:crypto (Node/Deno/Bun
  built-in). digests are byte-for-byte identical (verified in tests).
- 6 new objectstore tests: fast-ingest enabled-by-default, disableFastIngest
  opts out, multi-chunk roundtrip, legacy-bucket fallback, two cross-read
  matrices (FI on vs off, native vs js sha).
- 7 new sha256 tests covering equivalence and backend selection.
- obj/bench/fast_ingest_bench.ts — manual 2x2 throughput bench.
Source Files on build 25320542466
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #25320542466
  • 10654174 on github
  • Prev Build on main (#25318598278)
  • Next Build on main (#25320577417)
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