~/talk

Striving for ultimate Low Latency

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

Low-latency trading systems target 1–10 microseconds software paths and claim hardware setups can be an order of magnitude faster; Knight Capital’s 2012 bug losses (~$440M in 45 minutes) shows costly edge cases. Practical rules: avoid shared_ptr and std::function, RTTI, polymorphism, dynamic allocations on the fast path; prefer unique_ptr, SSO or in-place buffers, custom allocators/PMR, templates for static polymorphism. Architectures use spin-wait, pin threads to cores, separate I/O thread, lock-free queues, and measure with perf/VTune and flame graphs.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:14Defining latency and throughput
  3. 3:01Importance of low latency
  4. 5:46High-frequency trading environment
  5. 8:18Latency in trading orders
  6. 10:44Consequences of software bugs
  7. 11:49Hardware and OS optimizations
  8. 12:12Spin, pin, and drop-in concepts
  9. 14:36Focus on C++ and software
  10. 16:01Predictable performance requirements
  11. 18:28Avoiding unnecessary code
  12. 19:57Problems with shared pointers
  13. 23:51Smart pointer alternatives
  14. 26:20C++ exceptions performance
  15. 31:31Exception safety in code
  16. 33:52Avoiding polymorphism
  17. 37:31Runtime type identification issues
  18. 38:58Memory allocation pitfalls
  19. 41:53Custom allocators and SSO
  20. 44:00System design for low latency
  21. 45:26Performance measurement best practices
  22. 47:15Profiling and assembly reading
  23. 49:07Summary and Q&A
~/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.