Quadrupling code performance with a "useless" if

234 · Alisa Sireneva · July 12, 2026, 12:06 p.m.
Summary
Alisa Sireneva shares her experience optimizing a domain-specific compressor by enhancing code performance through effective chunking and optimal encoding selection. She describes the algorithm used to find the shortest path on a grid and how it improves the coding order, effectively quadrupling performance.