01blog.cloudflare.com
Saving 100 terabytes of memory by optimizing 1.1.1.1's DNS cache
Cloudflare optimized Big Pineapple’s DNS cache through five Rust storage changes: replacing growable collections, compacting section metadata, omitting repeated DNS owners, boxing large enum variants, and storing record data contiguously in wire format. These reduced per-entry memory 56%, lowered fleet memory by roughly 100 TB, increased insert throughput 43%, and reduced lookup latency 19%.