f6adf1c48f (master): ZJIT: Use a slice for ISeq `opt_table` for quick one-off access

1 view
Skip to first unread message

Alan Wu

unread,
Mar 30, 2026, 8:33:57 PM (23 hours ago) Mar 30
to ruby...@g.ruby-lang.org
Alan Wu 2026-03-30 18:55:31 +0000 (Mon, 30 Mar 2026)

New Revision: f6adf1c48f

https://github.com/ruby/ruby/commit/f6adf1c48f

Log:
ZJIT: Use a slice for ISeq `opt_table` for quick one-off access

This gets rid of the copying of the entire opt_table in
function_stub_hit() since it only reads one element. HIR builder
still does a copy and that's unchanged. It needs to read the whole
table.

Modified files:
zjit/src/codegen.rs
zjit/src/cruby.rs
zjit/src/hir.rs
Reply all
Reply to author
Forward
0 new messages