IDEAS, DECISIONS & LESSONS

Journal

Notes on AI, architecture and building useful products.

16 articles

30 Aug 2026 · 4 min read

cloudflare

Cloudflare Cut DNS Cache Memory by 56% — The Rust Layout Tricks Worth Stealing

On Aug 27, Cloudflare shipped five memory-layout optimizations to Big Pineapple, their DNS cache, cutting per-entry memory by 56% and freeing ~100TB fleet-wide. A Tech Lead's walkthrough of the actual techniques — struct packing, arena allocation, string interning — and where they pay off in ordinary backend services, not just DNS resolvers at Cloudflare scale.

Read more