~/talk

Two strings to your bow

Talkat 4Developers Gdańsk 2017 · on Monday, 2017-09-18· [c-and-cpp]
links:none on file
slides:none on file

Compares Java and C# StringBuilder to several C++ implementations and proves C++ can match or beat them once you stop appending naively. Benchmarks on a Skylake i5 using Visual Studio, GCC, clang show Java/C# reuse and reserved builders around 300 nanoseconds, while naive std::string appends cost 1–2 microseconds. Builds in‑place fixed buffers, chunked heap “rope”, and template overloads, explores reserve, thread‑local, prefetch, PGO and compiler codegen, and publishes the C++ StringBuilder for C++ implementation on GitHub.

AI-written summary · about

  1. 0:00Start
  2. 3:04How Can We Store String in C + +
  3. 10:28String Optimisation Regarding the Visual Studio
  4. 42:32Implementation of String Builder
  5. 45:01Profile Guided Optimization
  6. 46:41Summary
  7. 49:04General Rules for Writing Performant Code
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.