Ruff shaves 8 more bytes off Expression enum, cutting retained memory by >1%

charliermarsh · x · 2026-09-11

Ruff author charliermarsh squeezed another 8 bytes out of Ruff's Expression enum (64 → 56), reducing retained memory by more than 1% — "they said it couldn't be done," he joked, continuing his extreme Rust memory-layout optimization.

Related event: Ruff Author Shrinks Expression Enum to 56 Bytes, Saving 1% Memory(2 posts)→

Original post →

More from coding & agent

coding & agent channel →