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
The way we are generating acir opcodes for dynamic arrays follows too closely to the SSA IR. ie for each array_set, we are creating a new array and then copying over the old array into the new array and then setting just one value in that array at the specified index.
Happy Case
A rough solution would see an array_set and change the pointer to look at the new array's ID as the pointer for the new array and then only modify one value in that array.
Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered:
Problem
Related to #1969 (comment)
The way we are generating acir opcodes for dynamic arrays follows too closely to the SSA IR. ie for each array_set, we are creating a new array and then copying over the old array into the new array and then setting just one value in that array at the specified index.
Happy Case
A rough solution would see an array_set and change the pointer to look at the new array's ID as the pointer for the new array and then only modify one value in that array.
Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: