in reply to My scalars swell
This will remove the overhead of the array ref for each player.
The only comments I could find on pre-allocation of perl arrays was from 1998 (google groups search). Your array is small enough (100k-200k items) that I don't think it matters alot, but you could try
-jackdiedmy @big_array; $#big_array = $ESTIMATED_FINAL_SIZE; # declared at top of program # do stuff here
|
|---|