~/talk

High-load CGo: calling nonblocking C/C++ code without surprise ☠️

TalkinRussianat HighLoad++ 2024 · 2024-12-02..12-03· [go, concurrency]
links:none on file
slides:none on file

Explains pitfalls and techniques for calling non-blocking C/C++ code from Go using cgo, focusing on issues that arise with asynchronous OS operations and heavy CPU tasks (compression, crypto, math). Describes how to avoid unexpected blocking and performance problems when integrating C/C++ libraries into high-load Go applications.

AI-written summary · about

  1. 0:00Introduction
  2. 0:33CGo load problems
  3. 5:57CGo mechanism in Go
  4. 10:18Goroutine carousel issue
  5. 13:54Solution: goroutine limiting
  6. 17:26Solution: blocking calls
  7. 20:58Method comparison and benchmarks
  8. 23:29Summary and recommendations
  9. 24:54Q&A
~/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.