Provided your numbers are integers (signed 32-bit), you could reduce your memory requirements for the array from around 440MB to 54MB by using Packed::Array. It will slow the processing down somewhat, but it should easily handle the volume on most modern machines.
Be sure to heed the advice about pushing to the array as you go, rather than slurping the whole lot and then converting to an array, otherwise your just chewing the memory to hold the huge scalar for no reason.
In reply to Re: Limit on array size?
by BrowserUk
in thread Limit on array size?
by Dogg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |