You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ZJIT: Specialize Hash#fetch(key, default) case #1086
Hi, I’d like to take this one. I read rb_hash_fetch_m in hash.c, and plan to add an inline_hash_fetch in cruby_methods.rs for the two-argument case, modeled on inline_hash_aref.
Is a new HIR instruction the expected approach, or should it reuse an existing one?
Activity
tekknolagi commentedon Oct 20, 2026
We'll need to figure out how to integrate this neatly with
rb_hash_fetch_mthoughnithya4005 commentedon Oct 27, 2026
Hi, I’d like to take this one. I read rb_hash_fetch_m in hash.c, and plan to add an inline_hash_fetch in cruby_methods.rs for the two-argument case, modeled on inline_hash_aref.
Is a new HIR instruction the expected approach, or should it reuse an existing one?
tekknolagi commentedon Oct 27, 2026
Probably a new HIR instruction for now until we have a better idea