snarkVM icon indicating copy to clipboard operation
snarkVM copied to clipboard

[Feature] Opcodes for array operations.

Open d0cd opened this issue 2 months ago • 0 comments

🚀 Feature

With the latest increase in array sizes to 512, array operations in AVM bytecode can be cumbersome. In order to:

  • write to an element
  • slice an array
  • extend an array you must cast the full array entirely. For large arrays, this results in a long instruction that significantly increases the maximum program size.

Supporting this would result in condensed bytecode for specific use cases.

d0cd avatar Oct 27 '25 13:10 d0cd