Re: [Numpy-discussion] At.: use less RAM memory and increase execution speed

2013-09-26 Thread Michael Sarahan
xrange should be more memory efficient than range: http://stackoverflow.com/questions/135041/should-you-always-favor-xrange-over-range Replacing arrays with lists is probably a bad idea for a lot of reasons. You'll lose nice vectorization of simple operations, and all of numpy's other benefits.

Re: [Numpy-discussion] At.: use less RAM memory and increase execution speed

2013-09-26 Thread Robert Kern
On Thu, Sep 26, 2013 at 7:19 PM, Josè Luis Mietta < joseluismie...@yahoo.com.ar> wrote: > > Hi experts! > > I wanna use less RAM memory in my Monte Carlo simulations. In my algorithm I use numpy arrays and xrange() function. > I hear that I can reduce RAM used in my lagorithm if I do the next: > >

[Numpy-discussion] At.: use less RAM memory and increase execution speed

2013-09-26 Thread Josè Luis Mietta
Hi experts! I wanna use less RAM memory in my Monte Carlo simulations. In my algorithm I use numpy arrays and xrange() function. I hear that I can reduce RAM used in my lagorithm if I do the next: 1) replace xrange() for range(). 2) replace numpya arrays for python lists 3) use reset() funct