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

Josè Luis Mietta joseluismietta at yahoo.com.ar
Thu Sep 26 14:19:38 EDT 2013


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() function for deleting useless arrays. 

Is that true?

In adition, I wanna  increase execution speed of my code (I use numpy and SciPy functions). How can I apply Cython? Will it help?


Please help.

Thanks a lot!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20130926/ed506d46/attachment.html>


More information about the NumPy-Discussion mailing list