Commit Graph

4 Commits

Author SHA1 Message Date
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
Vladyslav Nikonov 8b2ba27f45 chore: remove now-proto-pdu crate (#633) 2025-01-16 10:00:18 +00:00
Vladyslav Nikonov 4b1dbaa910 docs(now-proto): now-proto improvements (#596) 2024-12-06 13:33:46 +02:00
Vladyslav Nikonov 1cd5c4b7f3 docs(now-proto): add missing NOW-PROTO docs (#575) 2024-11-07 19:29:08 -05:00