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

powersemmi / ruststream / 35772759897
96%

Build:
DEFAULT BRANCH: main
Ran 22 Sep 2026 07:21PM UTC
Jobs 1
Files 102
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

22 Sep 2026 07:16PM UTC coverage: 96.44% (-0.01%) from 96.45%
35772759897

push

github

web-flow
perf: the runtime's fixed cost per delivery (#407)

* perf(#406): a delivery is asked for its headers only where something reads them

The header map is a broker accessor, and answering it is work: on Kafka it is a
shadow buffer over the record's header block, a varint read and the buffer's
destruction, 744 instructions a delivery that nothing on the path was reading.
The runtime asked for it twice per delivery regardless, once to build the
`Context` and once to hand it to the decode.

Now the delivery itself is what both take. `DecodeWith::decode` receives the
message, so the kind that needs the headers (`DecodedPair`) reads them and the
kinds that do not (`Decoded`, the byte lanes) never reach the accessor, split by
type rather than by a branch on the delivery path. The `Context` holds the
delivery as a header source and resolves the map into a cell on the first
`headers()` or `headers_mut()`, so a handler that reads no headers pays two
pointer stores and one that reads them pays one indirect call, once, however
often it asks.

`DecodeWith::decode` changes signature. The trait is reachable only through the
bounds of the mount surface, so no service names it, and the 0.7 line is at a
release candidate.

Instructions per delivery on the in-memory broker, whose map is built before the
delivery leaves it, so what it shows is the floor rather than the gain:

  consume, JSON into a small struct       1821.2 -> 1814.2
  consume on the byte lane, no codec       970.2 ->  959.2
  consume through one middleware          1861.1 -> 1853.1
  consume through four middleware         1899.1 -> 1891.1
  publish with a typed header contract    4386.5 -> 4377.1
  reply, encoded to a declared name       2928.1 -> 2938.2
  read a header contract, then publish    4571.2 -> 4584.3
  request and reply, one round trip      10373.4 -> 10406.3

The last three are the price of the indirect call on a broker that charges
nothing for the accessor; the allocation counts every scen... (continued)

293 of 302 new or added lines in 15 files covered. (97.02%)

15224 of 15786 relevant lines covered (96.44%)

203.5 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
96.62
-2.18% src/runtime/typed.rs
2
98.18
0.04% src/runtime/dispatch.rs
1
98.11
src/runtime/shutdown.rs
Jobs
ID Job ID Ran Files Coverage
1 35772759897.1 22 Sep 2026 07:21PM UTC 102
96.44
GitHub Action Run
Source Files on build 35772759897
  • Tree
  • List 102
  • Changed 15
  • Source Changed 15
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35772759897
  • 8ebf354d on github
  • Prev Build on main (#35771671541)
  • Next Build on main (#35792506910)
  • 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