Skip to content

Conversation

@tekknolagi
Copy link
Contributor

This is a fast path that can avoid heap-allocating an intermediate Array
by using values on the stack.

This is a fast path that can avoid heap-allocating an intermediate Array
by using values on the stack.
@matzbot matzbot requested a review from a team May 2, 2025 19:28
ArrayDup { val , state } => ArrayDup { val: find!(*val), state: *state },
CCall { cfun, args, name, return_type } => CCall { cfun: *cfun, args: args.iter().map(|arg| find!(*arg)).collect(), name: *name, return_type: *return_type },
Defined { .. } => todo!("find(Defined)"),
NewArray { elements, state } => NewArray { elements: find_vec!(*elements), state: find!(*state) },
Copy link
Contributor Author

@tekknolagi tekknolagi May 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an extant bug that I noticed and fixed on the way

| Insn::PatchPoint(..) | Insn::GetConstantPath { .. } =>
{}
Insn::ArrayMax { elements, state }
| Insn::NewArray { elements, state } => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an extant bug that I noticed and fixed on the way

@k0kubun k0kubun enabled auto-merge (squash) May 2, 2025 19:56
@k0kubun k0kubun merged commit 23000c7 into ruby:master May 2, 2025
83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants