in reply to Re^2: dereferencing a double array
in thread dereferencing a double array
As for copying using a map instead of the double loop is mostly because it's less verbose. It's just one line and I see immediately it's a copy of a 2D array - the double loop takes more lines, and too large to immediately see what it does. I haven't benchmarked it, but if there's a difference I expect the difference to be small, and the map to be slightly faster; with the difference slowly growing if the arrays get larger. But speed isn't my main reason to copy it using a map.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: dereferencing a double array
by perlrocks (Acolyte) on Oct 16, 2008 at 21:31 UTC | |
by JavaFan (Canon) on Oct 16, 2008 at 22:08 UTC |