~/talk

High-Load CGo: Calling Nonblocking C/C++ Code Without Surprise

TalkinRussianat Golang Conf 2024 · 2024-12-02..12-03· [concurrency, c-and-cpp]
links:none on file
slides:none on file

The talk explains pitfalls and techniques for calling non-blocking C/C++ code from Go using cgo, focusing on cases like async OS I/O and CPU-heavy tasks (compression, crypto, math). It covers how cgo interacts with Go's scheduler and threads and presents practical approaches to avoid unexpected blocking when integrating C/C++ libraries into high-load Go services.

AI-written summary · about

  1. 0:00Introduction
  2. 2:17CGO load problems
  3. 5:26How CGO works
  4. 7:59Goroutine carousel effect
  5. 11:13Goroutine limiting fix
  6. 13:40Nonblocking calls without assembly
  7. 17:31Implementing blocking calls
  8. 20:41Benchmark method comparison
  9. 22:45Final solution comparison
  10. 23:51Summary and recommendations
  11. 24:57Q&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.