~/talk

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

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

Explains how Go's goroutine scheduler and the CGo bridge between Go and C/C++ work, focusing on how memory allocations are tracked and how data is marshaled between the languages. Covers implementation and optimization techniques down to assembly-level details to improve CGo performance.

AI-written summary · about

  1. 0:00Introduction
  2. 1:54SIG problem motivation
  3. 2:38Talk structure
  4. 3:22Why SIG is slow
  5. 6:28SIG call hierarchy
  6. 7:31Calling C from Go components
  7. 9:41Building simplest FAST SIG
  8. 12:10Go stack types
  9. 16:04Getting system stack
  10. 17:52FAST SIG with stack switch
  11. 21:44FAST SIG verification
  12. 22:49Go-C parameter exchange
  13. 27:33Heap problem solution
  14. 29:16Optimizing struct passing
  15. 33:12Primitive types handling
  16. 34:59Packed struct issues
  17. 36:47Memory management leaks
  18. 38:12FAST SIG vs SIG comparison
  19. 39:38Q&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.