~/talk

Inside Ruby: concurrency & garbage collection explained

Talkat RubyConf Argentina 2011 · 2011-11-08..11-09· [ruby, concurrency]
slides:none on file

Explains why Ruby 1.9 keeps a global interpreter lock and how that affects real apps by walking a concrete 10 clients example where even/odd request latency shows sequential ordering then fixes with threads, but still can’t use all CPUs. Covers C extensions’ safety tradeoffs, Ruby 1.9’s lazy-sweep GC change, and benchmarked results like a 20–30% GC improvement and real-world cases (Twitter ~20% CPU in GC) that justify tuning memory before chasing parallelism.

AI-written summary · about

  1. 0:00Introduction to Ruby internals
  2. 1:26Ruby implementations overview
  3. 5:19Concurrency basics with threads
  4. 10:42Thread limitations and context switching
  5. 13:30Green vs native threads in Ruby
  6. 18:13Why Ruby developers avoid threads
  7. 21:05Global interpreter lock explained
  8. 23:34Thread safety and GIL impact
  9. 25:46C extensions and memory management
  10. 27:50Should Ruby remove the GIL?
  11. 30:16CPU-bound vs I/O-bound workloads
  12. 32:45Memory allocation in Ruby
  13. 33:27Ruby garbage collection basics
  14. 35:13Lazy sweeping optimization
  15. 37:21Why garbage collection matters
  16. 39:49Key lessons and takeaways
  17. 41:22Q&A session
~/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.