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

Eyevinn / mp4ff / 36988755743
82%
master: 83%

Build:
Build:
LAST BUILD BRANCH: fix/segmenter-last-sample
DEFAULT BRANCH: master
Ran 02 Oct 2026 09:16AM UTC
Jobs 1
Files 217
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

02 Oct 2026 09:15AM UTC coverage: 82.493% (-0.003%) from 82.496%
36988755743

Pull #605

github

tobbee
perf(mp4): decode fragments with fewer allocations

Every box header made a string of its four-byte type, and decoding then
looked the string up in the decoder map. A table keyed by the type bytes as a
big-endian uint32 now returns both the type string and the decoder in one
lookup, so a box type with a decoder costs no allocation and one cheaper hash.
The table is built from decodersSR and kept in step by SetBoxDecoder and
RemoveBoxDecoder. DecodeHeader, DecodeHeaderSR and BoxSeekReader.PeekBoxHeader
all use it, and PeekBoxHeader reads headers into scratch arrays instead of new
slices.

moof and traf decoding copied their decoded children into a second slice;
AddChild appends each child once, in order, so the first slice is refilled in
place. A fragment's children slice is sized for moof and mdat up front.

On testdata/1.m4s cut into 60 one-sample fragments, decoding a fragment makes
14 instead of 24 allocations with DecodeFileSR and 16 instead of 28 when
streaming, and is 13-24% faster.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Pull Request #605: perf(mp4): decode fragments with fewer allocations

41 of 46 new or added lines in 6 files covered. (89.13%)

22962 of 27835 relevant lines covered (82.49%)

0.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
95.81
-1.42% mp4/boxsr.go
Jobs
ID Job ID Ran Files Coverage
1 36988755743.1 02 Oct 2026 09:16AM UTC 217
82.49
GitHub Action Run
Source Files on build 36988755743
  • Tree
  • List 217
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #605
  • PR Base - master (#36987980380)
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