Files
Rostyslav Romanets 9353b49810 perf(graphics): replace the RLGR decoder's bit reader (#2150)
This PR replaces the `bitvec`-based reader in `rlgr::decode` with a new
`BitReader` that uses a u64 accumulator to buffer up to 64 bits.
The new implementation improves performance by refilling the accumulator
with up to eight bytes per bounds check and serving reads of up to 32
bits directly from the accumulator.
The new bit reader is covered by an extensive test suite.

## Performance results
* RLGR1 entropy decoding: 1.97x faster
* RLGR3 entropy decoding: 2.17x faster
* Single-tile decoding: 1.6x - 3.7x faster depending on the resolution

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Marc-André Moreau <mamoreau@devolutions.net>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-10-26 10:04:17 -04:00
..