~/talk

Fast Forward: Speeding up Delegate Methods

Talkat RubyConf 2024 · 2024-11-13..11-15· [ruby]
slides:none on file

Shows how delegate methods plus knowledge of Ruby method call internals and inline caches let you replace generic forwarding with specialized fast paths that eliminate most call overhead. Includes concrete code patterns, a small macro-style generator that builds those fast paths, and microbenchmarks demonstrating roughly 2–6x speedups on tight delegate loops. Includes failure cases where polymorphism prevents optimization and how to detect them.

AI-written summary · about

  1. 0:00Welcome
  2. 14:57Why delegate methods slow apps
  3. 21:51Optimizing delegate performance
  4. 28:49Summary
~/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.