~/talk

Function Inlining

Talkat GopherCon Europe 2021 · 2021-05-26..05-28· [compilers-and-language-design, go]
slides:none on file

Explains what Go actually inlines, how the compiler decides (an inlining budget that favors small leaf functions), and practical tricks that work: split large methods, replace debug branches with constant debug guards so the compiler can remove them, and prefer local simple code instead of extra calls. Shows how to verify results with go test -bench -v / build verbose output, notes recent Go versions improve inlining and can make existing binaries measurably faster.

AI-written summary · about

  1. 0:00Function inlining introduction
  2. 3:19When inlining improves performance
  3. 6:40Risks and limits of inlining
  4. 10:16Inlining with constants
  5. 13:48Cas pratiques et exemples concrets
  6. 17:20Advanced optimizations
  7. 20:16Quand éviter l'inlining
  8. 22:23Bilan et recommandations finales
~/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.