in reply to Re: Re: array pre-allocation trick
in thread array pre-allocation trick
The map in your example serves no purpose other than to slow it down. The (0 .. $::size-1) builds a list which is directly assignable to an array.
By adding the map in there, you are
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: array pre-allocation trick
by Anonymous Monk on Nov 02, 2002 at 00:24 UTC | |
by Aristotle (Chancellor) on Nov 02, 2002 at 06:52 UTC |