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

kelindar / binary / 29774857806

20 Jul 2026 08:08PM UTC coverage: 91.578% (-0.3%) from 91.918%
29774857806

push

github

web-flow
Modernize APIs and speed up slice codecs (#24)

* Apply gopls modernize fixes

Replace interface{} with any, use range-over-int and reflect.TypeFor,
and drop the obsolete +build line now that the module requires Go 1.25.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix reflect.SliceHeader vet warnings

Replace deprecated SliceHeader/StringHeader casting with unsafe.Slice
and unsafe.StringData so go vet stays clean on Go 1.25.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Restore zero-copy nocopy integer slice decode

rv.Set(reflect.NewAt(...)) allocated on decode and regressed
nocopy/u64-dec. Mutate the slice header in place again without
using deprecated reflect.SliceHeader.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Speed up slice decode and sorted varint codecs

Reuse slice capacity on decode, batch varint writes into bytes.Buffer,
and decode sorted integer slices without reflect.Append so hot paths
allocate less and run faster.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Drop benchmark reference comparisons

Remove vs-ref (JSON and safe baselines) so benches only report absolute
timing and vs-prev deltas.

Co-authored-by: Cursor <cursoragent@cursor.com>

* preallocate map

---------

Co-authored-by: Cursor <cursoragent@cursor.com>

166 of 172 new or added lines in 10 files covered. (96.51%)

6 existing lines in 1 file now uncovered.

1457 of 1591 relevant lines covered (91.58%)

625.47 hits per line

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

98.06
/decoder.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc