Stream BCPack decoding and compact its lookup tables #1488

Manually merged
github merged 2 commits from github-bot/gh-1488 into main 2026-11-29 08:22:10 +00:00 AGit
Owner

@⁠FIocker on GitHub · 2026-11-28 20:44 UTC · original
FIocker:contrib/bcpack → main · +601 −367 · 1 files · 2 commits · merged 2026-11-29 08:16 UTC

Streams chunked BCPack decoding and packs the hot lookup tables to reduce overhead in the decoder. The change is confined to the format crate. Includes the synthetic fixture and fixes its Clippy identity-operation warning from #1351.

Earlier isolated synthetic measurements showed a decode improvement. This rebased branch awaits CI.

**@⁠FIocker** on GitHub · 2026-11-28 20:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1488) `FIocker:contrib/bcpack` → `main` · +601 −367 · 1 files · 2 commits · merged 2026-11-29 08:16 UTC Streams chunked BCPack decoding and packs the hot lookup tables to reduce overhead in the decoder. The change is confined to the format crate. Includes the synthetic fixture and fixes its Clippy identity-operation warning from #1351. Earlier isolated synthetic measurements showed a decode improvement. This rebased branch awaits CI.
- Stream decode() in 256-block stack chunks and move history buffers onto the stack, eliminating per-call heap allocations and OS page faults.

- Pack per-model freq/start/recip into contiguous Model structs and fast-path symbol-0 (slot < start[1]) without touching bucket tables.

- Specialize lane decode loops by (LANES, PER), remove Result from Lane::step, use fixed-slice bounds in BC1/BC4, and replace interleave/nibble/anchor bit loops with LUTs and masks.

- Add multi_format_multi_chunk_golden (BC1/3/4/5/6/7 over 300 blocks) verifying bit-exact equivalence across chunk boundaries.

Co-Authored-By: Gemini <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 20:45:59 +00:00
github manually merged commit f3772ed7a4 into main 2026-11-29 08:22:10 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1488
No description provided.