Closing a three-year-old issue using Rust arenas
Summary
The article details migrating Gleam's pretty printer to arena-based allocation in Rust, replacing boxed heap nodes with arena references to speed up formatting and reduce memory usage. It explains the Document structure, lifetimes, and the need for refactoring across the codebase, plus measurable performance improvements and caching benefits. It also notes trade-offs and points toward further reading on strictly pretty printing.