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

hyperledger / fabric-x-committer / 23486001637 / 1
91%
main: 91%

Build:
DEFAULT BRANCH: main
Ran 24 Mar 2026 11:04AM UTC
Files 79
Run time 2s
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

24 Mar 2026 10:59AM UTC coverage: 72.86% (+3.5%) from 69.391%
23486001637.1

push

github

web-flow
Introduce UnmarshalEnvelopeLite to speed up mapBlock (#316)

#### Type of change

- Improvement (improvement to code, performance, etc)
 
#### Description

Replace full proto.Unmarshal of Envelope→Payload→ChannelHeader (3
chained
deserializations) with direct protobuf wire-format scanning that
extracts
  only the needed fields (HeaderType, TxID, Data). This reduces envelope
parsing from 287 ns/op to 72 ns/op — a 4x speedup with 7 fewer
allocations.
```
  BenchmarkUnwrapEnvelope-14        4079934    286.7 ns/op   616 B/op   9 allocs/op
  BenchmarkUnwrapEnvelopeLite-14   16929306     71.5 ns/op    72 B/op   2 allocs/op

  [New mapBlock]
  BenchmarkMapBlock/txs=500-14                   2850            400160 ns/op          663662 B/op      13579 allocs/op
  BenchmarkMapBlock/txs=500-14                   2599            405622 ns/op          664974 B/op      13594 allocs/op
  BenchmarkMapBlock/txs=500-14                   2767            408145 ns/op          657391 B/op      13505 allocs/op

  [Old mapBlock]
  BenchmarkMapBlock/txs=500-14                   1497            677487 ns/op         1165977 B/op      17648 allocs/op
  BenchmarkMapBlock/txs=500-14                   1584            659822 ns/op         1168212 B/op      17674 allocs/op
  BenchmarkMapBlock/txs=500-14                   1808            635695 ns/op         1158503 B/op      17561 allocs/op
```
With UnmarshalEnvelopeLite, the new mapBlock is able to process 1.7x
more blocks.

#### Related issues

  - partially addresses #306

---------

Signed-off-by: Senthilnathan <cendhu@gmail.com>

4094 of 5619 relevant lines covered (72.86%)

0.8 hits per line

Source Files on job unit-test - 23486001637.1
  • Tree
  • List 79
  • Changed 12
  • Source Changed 0
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 23486001637
  • 5561b8a4 on github
  • Prev Job for on main (#23473815464.1)
  • Next Job for on main (#23489291082.1)
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