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

hyperledger / fabric-x-committer / 21895916992
90%
main: 90%

Build:
Build:
LAST BUILD BRANCH: test-coverage-improve
DEFAULT BRANCH: main
Ran 11 Feb 2026 07:12AM UTC
Jobs 2
Files 116
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

11 Feb 2026 07:02AM UTC coverage: 88.728% (+0.01%) from 88.717%
21895916992

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

87 of 109 new or added lines in 2 files covered. (79.82%)

2 existing lines in 1 file now uncovered.

9131 of 10291 relevant lines covered (88.73%)

1.29 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
81.97
0.61% service/sidecar/mapping.go
14
83.84
-8.47% utils/serialization/envelope.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
97.87
-2.13% service/verifier/verifier_server.go
Jobs
ID Job ID Ran Files Coverage
1 unit-test - 21895916992.1 11 Feb 2026 07:13AM UTC 72
65.22
GitHub Action Run
2 db-test - 21895916992.2 11 Feb 2026 07:12AM UTC 116
83.68
GitHub Action Run
Source Files on build 21895916992
  • Tree
  • List 116
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #316
  • PR Base - main (#21863706156)
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