[triangle-zpug] why is this using a lot of memory?

Joseph Mack NA3T jmack at wm7d.net
Tue Mar 25 16:59:49 CET 2008

On Tue, 25 Mar 2008, Philip Semanchuk wrote:

> range() builds a list of numbers in memory,

just figured this out myself. It's working fine in a while 
loop for the moment.

> so you're creating a list with 
> 10000000 elements. Check out the function xrange() instead.

thanks both of you. Will go lookup xrange()

Thanks Joe

Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

More information about the TriZPUG mailing list