in reply to Strange performance loss after interpolating an array and then copying to another array;
I've limited knowledge of the internals, but as I understand it, interpolating into a string will force the array elements to calculate a string value for all the numbers.
I would then expect the array copying to be duplicating the *strings* rather than only the integers, and that's a lot more bytes to copy.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Strange performance loss after interpolating an array and then copying to another array;
by moritz (Cardinal) on Aug 19, 2011 at 18:09 UTC | |
by Kc12349 (Monk) on Aug 19, 2011 at 18:13 UTC | |
|
Re^2: Strange performance loss after interpolating an array and then copying to another array;
by Kc12349 (Monk) on Aug 19, 2011 at 18:08 UTC |