pjscotton Hacker News • Recommends
On “Libc++'s Implementation of std::string”
189K subscribers • 103 videos on Hallway • Conference channel
Advanced. Deep dive for people who know the field.
122K views10 years ago4 recommendations
Systems programmingProgramming languagesC++Performance and optimizationMemory management
Nicholas Ormrod explains how Facebook optimizes std::string with its open-source replacement fbstring, covering storage layout and memory allocation.
CppCon.org — Presentation Slides, PDFs, Source Code and other presenter materials are available at: github.com/cppcon/cppcon2016 — 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. — Nicholas Ormrod Software Engineer, Facebook Nicholas is a developer efficiency engineer at Facebook. If he talks too much, disable him with a well-placed nerd snipe. — Videos Filmed & Edited by Bash Films: BashFilms.com Work at Hudson River Trading (HRT): tinyurl.com/safxfctfWhat people say. Highly recommended for its deep dive into C++ string optimization, memory layout tradeoffs, and real-world performance engineering at scale.
pjscotton Hacker News • Recommends
On “Libc++'s Implementation of std::string”
jiggawattson Hacker News • Recommends
On “Algorithms for Modern Hardware”
D4ckardon Hacker News • Recommends
On “Fixing C Strings”
def-pri-pubon Hacker News • Recommends
On “Faster Asin() Was Hiding in Plain Sight”
u/skeetoin r/C_Programming • Mentions
On “Why is there no C conference?”
u/Badel2in r/C_Programming • Mentions
On “Small-Size Optimization in C”
3uclidon Hacker News • Mentions
On “Show HN: SuperString – A fast and memory-optimized string library for C++”
GolDDrankson Hacker News • Mentions
On “Pointers Are Complicated, or What’s in a Byte?”
jiggawattson Hacker News • Mentions
On “Analyzing multi-gigabyte JSON files locally”
nyanpasu64on Hacker News • Mentions
On “Why Async Rust?”
SkiFire13on Hacker News • Mentions
On “The C bounded model checker: criminally underused”
sqrt_1on Hacker News • Mentions
On “Writing into Uninitialized Buffers in Rust”
sqrt_1on Hacker News • Mentions
On “Writing into Uninitialized Buffers in Rust”
u/kloetzlin r/C_Programming • Mentions
On “[Project] SmartString - A Lightweight, Fast, and Safe C Library Meant to Mimic String Functionality Present in C++”
u/Boreddad13in r/C_Programming • Mentions
On “string implementation”