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

moonbitlang / core / 8296
87%

Build:
DEFAULT BRANCH: main
Ran 14 Nov 2026 05:58AM UTC
Jobs 1
Files 695
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

14 Nov 2026 05:55AM UTC coverage: 88.262% (+0.02%) from 88.246%
8296

push

github

bobzhang
fix(compress/gzip,zlib): frame in place only for stored output

compress reserved header + deflate_bound + trailer at every level. The
bound is about the input size, so compressible input doubled peak
memory: 256 MiB of zeros at level 6 peaked at 515 MiB instead of
260 MiB, for no measurable speedup.

Frame in place only when the strategy always emits stored blocks
(Standard or Split at level 0 or below, which Compressor clamps to 0).
deflate_bound is exact there, so the reservation is the frame itself
and is returned without a copy. Every other strategy compresses through
deflate_all and copies once into an exact-size frame, whose length is
now checked against the Int range instead of wrapping.

Native --release, 256 MiB of zeros: level 6 peaks at 260 MiB (was
515 MiB), level 0 at 514 MiB (was 1091 MiB with the old framing).
Level 0 stays 26-44% faster for gzip and 55-70% for zlib; levels 1 and
6 are within noise.

Tests now check that stored strategies fill the exact bound (so a
silent fallback cannot hide), and cover clamped levels, Split(level=0),
65535-byte block boundaries, empty and long zlib dictionaries, and the
frame-length overflow guard. The test-only reserve_limit parameter is
gone.

34 of 34 new or added lines in 2 files covered. (100.0%)

3 existing lines in 2 files now uncovered.

25708 of 29127 relevant lines covered (88.26%)

764497.29 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
97.5
0.73% compress/zlib/zlib.mbt
1
98.18
0.43% compress/gzip/gzip.mbt
Jobs
ID Job ID Ran Files Coverage
1 8296.1 14 Nov 2026 05:58AM UTC 695
88.26
GitHub Action Run
Source Files on build 8296
  • Tree
  • List 695
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 43091505 on github
  • Prev Build on main (#8293)
  • Next Build on main (#8298)
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