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

vigna / dsi-bitstream-rs / 29653800427
65%

Build:
DEFAULT BRANCH: main
Ran 18 Jul 2026 05:26PM UTC
Jobs 1
Files 43
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

17 Jul 2026 07:33PM UTC coverage: 58.294% (+0.5%) from 57.839%
29653800427

push

github

vigna
Limit peekable bits to half the buffer instead of peeking twice

Revert the two-refill peek_bits and the associated full-buffer handling in
read_bits/skip_bits/read_unary introduced on the peek_twice branch, restoring
the original single-refill hot paths verbatim. Instead, set PEEK_BITS to
exactly one word (half the two-word bit buffer) so that a peek needs at most
one refill and the bit buffer is never completely full. This keeps all the
other fixes from the branch (copy_to/copy_from, flush retry, into_inner,
counters, dispatch, std::io::Read, word adapters) while avoiding the
per-call branch that the full-buffer handling added to read_bits/peek_bits/
skip_bits on the default (u32) read word.

One word of peekable bits is sufficient for every decoding table; the
generated check_read_table asserts guarantee this at compile time. The read
table-sweep script is clamped so it never generates a table wider than the
read word's PEEK_BITS (e.g. no 9-bit gamma tables on an 8-bit read word).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

12 of 12 new or added lines in 1 file covered. (100.0%)

179 existing lines in 7 files now uncovered.

2228 of 3822 relevant lines covered (58.29%)

2626768.34 hits per line

Coverage Regressions

Lines Coverage ∆ File
85
62.06
-0.35% src/impls/buf_bit_reader.rs
35
26.36
-0.6% src/dispatch/codes.rs
16
84.77
-5.67% src/impls/bit_reader.rs
15
0.0
0.0% src/dispatch/dynamic.rs
13
83.0
14.17% src/impls/buf_bit_writer.rs
10
91.84
0.06% src/utils/count.rs
5
44.74
-6.78% src/impls/word_adapter.rs
Jobs
ID Job ID Ran Files Coverage
1 29653800427.1 18 Jul 2026 05:26PM UTC 43
58.29
GitHub Action Run
Source Files on build 29653800427
  • Tree
  • List 43
  • Changed 20
  • Source Changed 14
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29653800427
  • 72c65bc0 on github
  • Prev Build on main (#24296027016)
  • Next Build on main (#29740807880)
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