~/talk

This Videogame Developer Used the STL and You'll Never Guess What Happened

Talkat ACCU 2021 Online · 2021-03-10..03-13· [game-development]
slides:none on file

Claims production C++ game uses the STL successfully on CPU‑bound code and measurable problems mostly come from toolchain choices not abstractions. Benchmarks show enabling -O or inlining cuts runtimes by several× versus unoptimized loops, vector is cache‑friendly and usually fastest, and better hash performance comes from open addressing rather than naive std::unordered_map implementations that suffer a modulo bottleneck. Small‑buffer variants like boost/facebook/google small vector give big wins for many tiny allocations, but custom replacements cost ongoing maintenance.

AI-written summary · about

  1. 0:00Start
  2. 8:12Major vendors should provide a reasonably good implementation of the STL
  3. 10:49STL, like C++, is designed for general purpose
  4. 12:30Vendor implementations may include additional debug features to help developers
  5. 18:01The 80486 was the last x86 to run instructions
  6. 25:55Some vendors offer good or decent support for optimized debug builds (CCC, MSVC)
  7. 27:25Most commonly used containers
  8. 38:13Fixed capacity vector
  9. 39:05Classic sorted associative containers
  10. 42:26Open addressing hash tables offer better
  11. 43:34Caching is not the main reason why STL hash tables are slow
  12. 48:01The Committee make specifications, not implementation
  13. 49:05Common STL implementations are widely used and tested
  14. 50:57Standard specifications cannot make unsafe assumptions
  15. 51:22Corollary fit-to-purpose alternatives make
  16. 53:26Writing generic containers is hard
  17. 54:31Consider how many people one can spare on STL replacements maintenance
  18. 57:14Challenge your vender quality of
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.