How we reduced the size of our Agent Go binaries by up to 77%
Case study 14 min +140 XP
Datadog cut its Agent's Go binary sizes by up to 77% between versions 7.60.0 and 7.68.0 without removing features.
Datadog cut its Agent's Go binary sizes by up to 77% between versions 7.60.0 and 7.68.0 without removing features.
Datadog cut CPU in Go hot paths by removing compiler bounds checks in NormalizeTag (25% faster, 0.75% service CPU) and adding an ASCII fast path to NormalizeTagArbTagValue (90% faster, hundreds of thousands of dollars in projected annual savings), guided by production data showing nearly all inputs were ASCII.
Postgres crashes with segfaults on Arm64 instances were traced to JIT-compiled tuple-deforming code, and ultimately to a bug in LLVM's Arm64 code generation.