~/talk

Ruby Racing: Challenging Ruby Methods

Talkat RubyDay 2016 · 2016-11-25..11-26· [ruby]
slides:none on file

Built a Ruby racer gem that runs user implementations against library methods for arrays and numerals, using Ripper and bytecode disassembly to inspect what's happening. Benchmarks show while loops 12% faster than block-based each for tight loops, and array assignment 10% slower than push in one test. flatten uses a stack and while loop in C, uniq is implemented via hash lookups, and results vary by input and isolation — sometimes custom Ruby wins, complex algorithms favor the C versions.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:02Ruby runtime execution
  3. 6:54Ruby Racing concept
  4. 10:30Demo of method racing
  5. 16:44Factors for faster Ruby
  6. 19:45Source code deep dive
  7. 23:40Code quality and Ruby benefits
  8. 25:28Resources and closing
~/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.