Settings

Theme

One-Character Commit Saves 15,000 Servers at Meta

3 points by 8611m 6 months ago · 1 comment · 1 min read


Digging through Strobelight and Scuba traces, a performance engineer at Meta filtered on a specific std::vector call and spotted an unexpected deep copy hiding behind the innocent-looking auto keyword. The culprit sat in one of the company’s busiest Ads service paths. Swapping auto for auto&—a single ampersand—eliminated the copy and is projected to free up the equivalent of 15 K servers annually. A reminder that even trillion-line fleets can hinge on one character, and profiling tools still pay for themselves many times over.

tacostakohashi 6 months ago

What a relief, it would be a tragedy for humanity if Meta's ad service paths were any less efficient.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection