~/talk

Reducing Implicit Allocations During Method Calling

Talkat RubyKaigi 2024 · 2024-05-15..05-17· [ruby]
slides:none on file

Shows concrete allocation cuts in Ruby 3.3 and 3.4: a call that was allocating four arrays and one hash in Ruby 3.2 becomes allocationless in 3.3 after keyword splat separation and changing Splat_array true to Splat_array false. Adds optimizer-level checks, a caller flag ARG_SPLAT_MUTE, and new VM ops like concat_2_array, push_to_array and Splat_keyword so multiple splats, splat+arg and anonymous-splat forwarding drop redundant allocations and preserve correct evaluation order.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Measuring implicit allocations
  3. 3:38Keyword Splat separation
  4. 11:26Splat array optimizations
  5. 17:49Ruby 3.4 optimizations
  6. 24:06Anonymous Splat forwarding
  7. 27:56Generic argument forwarding
  8. 29:01Bugs and lessons learned
  9. 29:44Closing and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.