http://qs1969.pair.com?node_id=516808


in reply to Out of Memory Error -- Possible Leak?

When processing ginormous data sets, try to use while instead of for.

for wants to load the entire dataset into memory but while wants to load each datum as you request it.