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

freeeve / msgpck / 21451961378

28 Jan 2026 07:10PM UTC coverage: 71.771% (-0.8%) from 72.531%
21451961378

push

github

freeeve
perf(struct_encoder): optimize slice encoding for primitive types

Eliminate per-element allocations when encoding primitive slices.

Before: 1M int64 encode = 23ms, 1M allocs
After:  1M int64 encode = 8.7ms, 1 alloc (2.6x faster)

- Add direct encoding for []int, []int8/16/32/64
- Add direct encoding for []uint, []uint16/32/64
- Add direct encoding for []float32, []float64
- Fallback to reflection only for unsupported element types

28 of 74 new or added lines in 1 file covered. (37.84%)

4 existing lines in 1 file now uncovered.

2878 of 4010 relevant lines covered (71.77%)

124743.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.17
/struct_encoder.go


Source Not Available

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