Newbie question about memory management

Emile van Sebille emile at fenx.com
Sat Jan 3 14:14:19 EST 2004


Oh Kyu Yoon:
> I am writing my first python program, and I have to deal with
several lists
> of double precision numbers that are about 10,000,000 in length.
> If I have 5 such lists, 5 x 10,000,000 x 8bytes ~ 400 MB which is
too much
> for the computer memory.
> Does anyone have better strategies to do this?

How about numeric with Kragen Sitaker's memory mapped files.
http://www.pfdubois.com/numpy/
http://pobox.com/~kragen/sw/arrayfrombuffer/

HTH,

Emile van Sebille
emile at fenx.com






More information about the Python-list mailing list