TLDR Web Dev · ARTICLES & TUTORIALS

HOW GO 1.24'S SWISS TABLES SAVED US HUNDREDS OF GIGABYTES

datadoghq.com8 min read

Summary from the TLDR Web Dev newsletter

Go 1.24 introduced Swiss Tables, a new map implementation that significantly improved memory efficiency for Datadog's services. While initially experiencing a memory regression from a separate mallocgc issue, Datadog discovered that its high-traffic services actually saw large memory reductions, up to 1 GiB saved in some cases, due to Swiss Tables' more compact storage format compared to Go 1.23's bucket-based maps.