Having thought this through a bit more I think I understand what is going on. I think it's due to how perl represents scalars internally. After interpolating, the array now contains both the original numeric representation of the elements and the string representation created by calling them within the string context of interpolation. This means that the data footprint to be copied from one array to the other is now significantly larger.
In reply to Re: Strange performance loss after interpolating an array and then copying to another array;
by Kc12349
in thread Strange performance loss after interpolating an array and then copying to another array;
by Kc12349
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |