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

hyperledger / fabric-x-committer / 22625381236 / 2
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: sidecar-diagram-mod
DEFAULT BRANCH: main
Ran 03 Mar 2026 01:39PM UTC
Files 114
Run time 3s
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

03 Mar 2026 01:33PM UTC coverage: 83.771% (-0.4%) from 84.151%
22625381236.2

Pull #316

github

cendhu
Introduce UnmarshalEnvelopeLite to speed up mapBlock

  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.

Signed-off-by: Senthilnathan <cendhu@gmail.com>
Pull Request #316: Introduce UnmarshalEnvelopeLite to speed up mapBlock

8476 of 10118 relevant lines covered (83.77%)

0.92 hits per line

Source Files on job db-test - 22625381236.2
  • Tree
  • List 114
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 22625381236
  • 39820973 on github
  • Prev Job for on optimize-map-block (#22621550981.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