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

powersemmi / ruststream / 34964815500
96%

Build:
DEFAULT BRANCH: main
Ran 15 Sep 2026 11:47AM UTC
Jobs 1
Files 99
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

15 Sep 2026 11:43AM UTC coverage: 96.465% (+0.001%) from 96.464%
34964815500

push

github

web-flow
perf: bring the publish paths to zero allocations per message (#372)

* perf(#366): give the encode buffer its first block up front (-1 allocation per publish)

A codec started its buffer empty, and a serializer writes a document in
fragments, so even a fourteen-byte body was reallocated twice on the way
out - one block more than the hand-written `serde_json::to_vec` the
benchmark compares against. The buffer now opens at the capacity that
call reserves, which is one block at every size.

Every publish path pays this once per message: reply, `Out` slot, typed
headers, request-reply. The measured effect is one allocation and around
a hundred and fifty instructions less per message on each of them.

* perf(#366): hand the rebuilt message's headers on instead of copying them (-2 allocations per slot publish)

A publish stage that mutates the message rebuilds it, and every rebuild
then cloned the header map into the message it handed to the broker -
a map it was about to drop. The three stages that rebuild (the slot's
transforms, the app-wide publish middleware, the deferred retry copy)
now move it instead. A retry copy under a publisher with no base headers
also takes the delivery's map whole rather than re-entering it key by
key.

The broker's own copy stays: a queue that outlives the publisher must
own what it stores, which is what the hand-written half of the benchmark
pays too. Measured on a slot publish with one transform: two allocations
and around four hundred instructions less per message.

* perf(#366): let a rebuilt message lend its payload (-1 allocation per slot publish)

The payload of an outgoing message is now the same shape its destination
has always had: the bytes as they arrived until something writes to
them. A publish stage that rebuilds the message - the slot's transforms,
the app-wide middleware, the deferred retry copy - copied the payload so
that a transform could mutate it, and a transform that stamps a header
or a setting never ... (continued)

51 of 52 new or added lines in 7 files covered. (98.08%)

14791 of 15333 relevant lines covered (96.47%)

197.32 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
98.04
-1.96% src/runtime/publish/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 34964815500.1 15 Sep 2026 11:46AM UTC 99
96.47
GitHub Action Run
Source Files on build 34964815500
  • Tree
  • List 99
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34964815500
  • 40623c7d on github
  • Prev Build on main (#34958896633)
  • Next Build on main (#35134439269)
  • 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