|laziness, impatience, and hubris|
Re: Assining data to an array is slow..by jeroenes (Priest)
|on Mar 01, 2001 at 12:30 UTC||Need Help??|
You should also make sure that the data actually fit in
memory, or at least physical memory.
perl -e '@a=(1)x2E6;sleep();' takes 48 Mb on
perl5.6, and I recall it was nearly twice as much in perl5.0.
And that's without any data.
So the actual allocation of the data takes time as well.