Newbie question about memory management
Terry Reedy
tjreedy at udel.edu
Tue Dec 30 10:34:05 EST 2003
"Oh Kyu Yoon" <okyoon at stanford.edu> wrote in message
news:bsr299$eg0$1 at news.Stanford.EDU...
> 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?
If you use Python lists of wrapped floats, you will use more than 8 bytes
each. To make arrays of C floats, and for much faster computation, use
Numerical Python. It includes wrappings of LinPak and FFTPak.
tjr
More information about the Python-list
mailing list