Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Performance engineering Remove topic Performance engineering Clear all 26 posts RSS

2026

2025

From hand-tuned Go to self-optimizing code: Building BitsEvolve

Case study 17 min +170 XP

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.

Evolving our real-time timeseries storage again: Built in Rust for performance at scale

Case study 21 min +210 XP

Datadog's sixth-generation real-time timeseries database (RTDB) is a Rust rewrite that unifies two earlier engines, one for scalar metrics and one for DDSketch distributions, after earlier generations built on Cassandra, Redis, MDBM, a Go B+ tree and RocksDB.

How Go 1.24’s Swiss Tables saved us hundreds of gigabytes

Deep dive 17 min +170 XP

Go 1.24's new map implementation, based on Swiss Tables and extendible hashing, cut roughly 500 MiB of live heap (about 1 GiB of RSS with GOGC=100) from a 3.5-million-entry routing cache map, enough to more than offset a separate Go 1.24 mallocgc memory regression.

Squeezing every millisecond: How we rebuilt the Datadog Lambda Extension in Rust

Case study 9 min +90 XP

Datadog rewrote its AWS Lambda Extension from a Go build of the full Datadog Agent into a purpose-built Rust sidecar (Project Bottlecap), cutting cold start overhead from about 450 ms to 70 ms, memory from 128 MiB to 77 MiB, and binary size from 55 MB to 7 MB.

2024

.NET Continuous Profiler: Exception and lock contention

Deep dive 8 min +80 XP

Datadog's .NET continuous profiler captures thrown exceptions through ICorProfilerCallback::ExceptionThrown and reads each exception's _message field by resolving System.Exception's ClassID from CoreLib metadata and computing the field offset with GetClassLayout.

2023

2022

2021

The quest for software engineering knowledge.

Look:
Layout: