Box to save memory
Summary
This Rust-focused article demonstrates how changing the in-memory layout of deserialized data can dramatically reduce memory usage. By boxing optional heavy structs and using a custom deserializer, the author saves about 460 MB and discusses trade-offs like higher CPU cost and potential heap fragmentation.