~/talk

I Made a Slow Thing Fast

Talkat LoneStarRuby Conf 2013 · 2013-08-11..08-13· [web-performance, ruby]
links:none on file
slides:none on file

Identifies the real bottleneck with top, iostat and perftools.rb (pprof shows ~72% time in io_select), then applies three cheap fixes — reverse processing order, skip unnecessary fetches, and switch Faraday to net_http_persistent — cutting feedback time from ~15 minutes to ~2.5 minutes. Builds a persistent thread pool (Queues, ~100 workers) to reuse connections despite MRI’s global interpreter lock, reducing sync from ~1 minute to ~17 seconds, and the change works.

AI-written summary · about

  1. 0:00Intro
  2. 0:52Overview
  3. 1:40The API
  4. 2:03XML
  5. 3:20API
  6. 3:48The Problem
  7. 5:07What is Slow
  8. 6:01Top
  9. 7:50Output
  10. 9:41ProofTools
  11. 10:28Generating Output
  12. 11:42Sync Process
  13. 11:59Failure Investigation
  14. 12:32Performance
  15. 13:10What is important
  16. 13:34Giving feedback
  17. 14:02Change document
  18. 14:13Reverse smell change
  19. 14:44Metadata changes
  20. 15:28HTTP persistent
  21. 16:25Benchmarks
  22. 18:11Global Interpreter Lock
  23. 19:24Whats Parallel
  24. 20:47Temporary Thread Pools
  25. 25:58The Loop
  26. 27:39Saving Standard Error
  27. 30:13Time
  28. 31:28Questions
  29. 32:09Threads
~/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.