~/talk

From assembler to C++: the internals and optimization of CGo ☠️

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

Explains how Go's goroutine scheduler interacts with C/C++ via cgo, detailing the cgo bridge implementation and optimization techniques. Covers memory allocation tracking and how data is marshaled/shared between Go and C/C++ to improve performance and correctness.

AI-written summary · about

  1. 0:00Introduction
  2. 2:34What is CGO and why slow
  3. 7:08Calling C from Go
  4. 11:04FastCGO basics
  5. 17:10Stack switching in FastCGO
  6. 22:50Parameter exchange Go/C++
  7. 29:52Heap issues and escape analysis
  8. 33:27Data types and struct alignment
  9. 35:13Memory management and leaks
  10. 37:44FastCGO vs CGO
  11. 39:12Conclusion and GitHub code
  12. 39:56Q&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.