Code Unpacked · Walkthrough

Silk #3079: decoding faster without losing the boundaries

Optimize the existing streaming decoder and CRC-32 implementation while retaining Decoder.step, resource limits and a 64 KiB memory bound. Read the unsafe fast-loop proof and handoff first, CRC dispatch second, and correctness/measurement evidence last. Source analysis and an independent CRC model support understanding; native execution and speedup remain unverified in this run.

Overview · Overview

Purpose

Optimize the existing streaming decoder and CRC-32 implementation while retaining Decoder.step, resource limits and a 64 KiB memory bound. Read the unsafe fast-loop proof and handoff first, CRC dispatch second, and correctness/measurement evidence last. Source analysis and an independent CRC model support understanding; native execution and speedup remain unverified in this run.

Evidence (38 references)
stdlib/silk/compress/inflate.silk:459–543 · stdlib/silk/compress/inflate.silk:1453–1469 · stdlib/silk/compress/checksum.silk:719–750 · corpus/native/inflate-fast-loop/main.silk:297–323 · integration/inflate-benchmark/run:155–203 · stdlib/silk/compress/inflate.silk:585–642 · stdlib/silk/compress/inflate.silk:580–613 · stdlib/silk/compress/inflate.silk:1630–1676 · stdlib/silk/compress/inflate.silk:1694–1730 · stdlib/silk/compress/inflate.silk:1541–1586 · stdlib/silk/compress/inflate.silk:1596–1620 · stdlib/silk/compress/inflate.silk:1289–1335 · stdlib/silk/compress/inflate.silk:1338–1360 · stdlib/silk/compress/inflate.silk:1740–1828 · stdlib/silk/compress/inflate.silk:1830–1848 · stdlib/silk/compress/inflate.silk:732–744 · stdlib/silk/compress/inflate.silk:746–789 · stdlib/silk/compress/checksum.silk:513–550 · stdlib/silk/compress/checksum.silk:511–546 · stdlib/silk/compress/checksum.silk:548–564 · stdlib/silk/compress/checksum.silk:566–638 · stdlib/silk/compress/checksum.silk:640–709 · stdlib/silk/simd/cpu.silk:241–279 · stdlib/silk/simd/cpu.silk:511–523 · corpus/native/inflate-fast-loop/main.silk:87–167 · corpus/native/inflate-fast-loop/main.silk:192–240 · corpus/native/inflate-fast-loop/main.silk:256–296 · integration/inflate-benchmark/corpus.py:51–83 · integration/inflate-benchmark/src/main.silk:249–295 · integration/inflate-benchmark/baseline.c:109–153 · reference/stdlib/compress-checksum.md:10–18 · stdlib/silk/compress/checksum.silk:1–13 · .github/scripts/check-replay-budgets.mjs:6–23 · .github/scripts/check-replay-budgets.mjs:81–97 · .github/scripts/check-replay-budgets.mjs:146–168 · .github/workflows/selfhost.yml:443–477 · compiler/fixtures/replay/fanout/markdown.txt:1–2 · compiler/fixtures/replay/fanout/yaml-stdlib.txt:1–3

Use ← → to navigate, Space to play or pause, and Home / End to jump. Start with the overview, then open a deep-dive chapter.

Coverage and evidence

20 captured files · 118 source references. Coverage describes the supplied snapshot; it does not establish complete runtime behavior.

Limits of this explanation