mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fd01a0af73
When pattern matching an array literal against an array pattern with matching sizes (e.g., `[1,2] => a,b`), skip the runtime calls to #deconstruct and #size. Instead, directly extract elements using the VM's GETIDX opcode. This reduces bytecode from 72 to 28 bytes (61% reduction) and eliminates 4 method calls per pattern match. Co-authored-by: Claude <noreply@anthropic.com>