~/talk

Using C to Tune Your Ruby (or Rails) Application

Talkat Ruby Hoedown 2007 · 2007-08-24..08-25· [ruby]
links:none on file
slides:none on file

Shows how to rewrite numeric hot spots in C using the ruby-inline gem, traditional C extensions built with mkmf and gcc, and the ruby-to-c translator; demonstrates a factorial benchmark where plain Ruby runs ~2 requests/sec while inline C runs about 50 reqs/sec after compilation and native extensions match that speed. Covers practical gotchas: run sudo make install, place inline code in lib to avoid dev reloads, manage manual frees for C-allocated memory.

AI-written summary · about

  1. 0:00Intro
  2. 7:35Why C
  3. 15:45Make file
  4. 16:30Practical tip
  5. 17:26Sample C
  6. 28:55Inline C
  7. 31:12Running the code
  8. 32:49Who codes it
  9. 33:24Installation
  10. 34:04Sample Code
  11. 34:58Ruby Forge
  12. 37:15Rails
  13. 37:55Log
  14. 38:48Testing
  15. 45:09Inline Code
  16. 45:39Reload
  17. 46:57Rexml vs Livexml
  18. 48:04Performance Implications
  19. 49:17Questions
~/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.