CppCon 2016 has ended
Tuesday, September 20 • 3:45pm - 4:15pm
The strange details of std::string at Facebook

Log in to save this to your schedule and see who's attending!

Standard strings are slowing you down. Strings are everywhere. Changing the performance of std::string has a measurable impact on the speed of real-world C++ programs. But how can you make strings better? In this talk, we'll explore how Facebook optimizes strings, especially with our open-source std::string replacement, fbstring. We'll dive into implementation tradeoffs, especially the storage of data in the struct; examine which standard rules can and cannot be flouted, such as copy-on-write semantics; and share some of the things we've learned along the way, like how hard it is to abolish the null-terminator. War stories will be provided.

avatar for Nicholas Ormrod

Nicholas Ormrod

Software Engineer, Facebook
Nicholas is a infrastructure engineer at Facebook. If he talks too much, disable him with a well-placed nerd snipe.

Tuesday September 20, 2016 3:45pm - 4:15pm
Prince Theater (2nd Floor) Meydenbauer Center

Attendees (254)