How can we measure the performance of a small fragment of code?
Why are small and frequent memory allocations particularly bad for performance?
What is local buffer optimization, and how does it work?
Why is an allocation of an additional buffer inside an object effectively free?
What is short string optimization?
What is small vector optimization?
Why is local buffer optimization particularly effective for callable objects?
What are the trade-offs to consider when using local buffer optimization?
When should an object not be placed in a local buffer?
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.