~/talk

Profiling Tips and Tricks

Talkat XO Ruby Portland 2025 · on Saturday, 2025-10-11· [ruby]
slides:none on file

Uses the Vernier sampling profiler and the profile viewer to locate a real bottleneck: C extensions dominate install time. Setting MAKEFLAGS=-j cuts bundle install from ~42s to ~31s; parallel downloading helps on slow networks (example: 47s → 37s over VPN to Australia); switching to Ruby 3.4 with pre-compiled gems drops a run to ~15s. The talk shows a small atomic change and a download-parallelism patch that work, and identifies C extension compilation as the key culprit.

AI-written summary · about

  1. 0:00Conference welcome
  2. 1:04Ruby speed vs Python UV
  3. 3:31Profiling mindset
  4. 5:37Veneer profiler intro
  5. 6:20Exact vs sampling profilers
  6. 8:47Frame push atomicity
  7. 10:12Stack profiler limits
  8. 12:18Veneer solves challenges
  9. 13:43Case study: bundle install
  10. 14:25Programmatic vs CLI profiling
  11. 15:07Profile viewer demo
  12. 16:32How bundle install works
  13. 17:12Reproducible profiling setup
  14. 18:15Initial profiling results
  15. 18:37Thread activity analysis
  16. 20:03Bottlenecks with call stacks
  17. 21:07Performance strategies
  18. 23:54Speeding up C extensions
  19. 24:58MAKEFLAGS atomicity
  20. 26:00Parallelism algorithmic improvements
  21. 29:47Parallel gem downloads
  22. 30:49Parallel download results
  23. 32:34Custom markers for analysis
  24. 33:58Pre-compiled gem testing
  25. 34:42Bottlenecks even with pre-compiled gems
  26. 35:25General performance tips
  27. 36:07Edge case testing
  28. 37:12Final thoughts
~/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.