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

hyperledger / fabric-x-committer / 23486001637
91%

Build:
DEFAULT BRANCH: main
Ran 24 Mar 2026 11:03AM UTC
Jobs 2
Files 122
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

24 Mar 2026 10:59AM UTC coverage: 90.509% (-0.006%) from 90.515%
23486001637

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>

92 of 116 new or added lines in 2 files covered. (79.31%)

16 existing lines in 6 files now uncovered.

9632 of 10642 relevant lines covered (90.51%)

1.35 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
82.81
0.55% service/sidecar/mapping.go
16
79.25
-13.06% utils/serialization/envelope.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
97.62
-0.79% mock/coordinator.go
1
94.87
0.85% service/vc/validator_committer_service.go
2
95.74
-2.13% service/verifier/verifier_server.go
4
79.25
-13.06% utils/serialization/envelope.go
4
83.87
0.0% service/vc/database.go
4
90.35
-1.75% service/coordinator/validator_committer_manager.go
Jobs
ID Job ID Ran Files Coverage
1 unit-test - 23486001637.1 24 Mar 2026 11:03AM UTC 79
72.86
GitHub Action Run
2 db-test - 23486001637.2 24 Mar 2026 11:03AM UTC 122
84.12
GitHub Action Run
Source Files on build 23486001637
  • Tree
  • List 122
  • Changed 20
  • Source Changed 0
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5561b8a4 on github
  • Prev Build on main (#23473815464)
  • Next Build on main (#23489291082)
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