~/talk

A closer look at garbage collection in Go

Talkat GoWayFest 3.0 2019 Β· on Friday, 2019-07-05Β· [go]
links:none on file
slides:none on file

Walks through real runs on 4,000 synthetic RSS files using go tool trace and browser tracing. Sequential run takes 2.5s, finds the term 28,000 times, does 232 GCs totaling ~67ms (avg 291Β΅s). Naive concurrency with 4,000 goroutines drops runtime to 751ms but triggers just 23 GCs that cost ~153ms (avg ~6ms), so GC is ~30% of time. Bounded parallelism via runtime.NumCPU and a buffered channel stabilizes heap and shifts GC behavior; toggling GOGC shows the expected ~180ms runtime change.

AI-written summary Β· about

  1. 0:00Introduction to garbage collection
  2. 1:03Sequential algorithm walkthrough
  3. 3:36Analyzing trace with Go tool
  4. 7:55Sequential GC performance
  5. 8:37Building concurrent version
  6. 14:16Concurrent GC performance
  7. 18:14Optimizing goroutine count
  8. 21:47Stable heap with 12 goroutines
  9. 24:15GC cadence and trade-offs
  10. 25:38Q&A on GC impact
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← β†’
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.