in reply to Re^2: Iterating through Two Arrays. Is there a better use of memory?
in thread Iterating through Two Arrays. Is there a better use of memory?

I know for the actual model I am dealing with at least two files that are 3.6GiB and 5.9GiB.

Totally irrelevant to your question. The sum of the number of elements in @line1 and @line2 is what matters. You said the product of their size is going to be 10,000, so the sum of their sizes is going to be between 200 and 10,001, rather small numbers.

If you can fit 10GiB into memory, don't fret about using less than 100KB to loop through the data.