Chris wrote: > I have a Bayesian simulation package that keeps running into memory > allocation problems. I have a feeling this has something to do with > Python (2.5.1.1) not freeing memory. The program essentially > iterates n times, each time proposing new arrays (numpy) of values > that are evaluated using statistical likelihoods. All variables in > the loop are re-assigned at each iteration, so there should not be > a leak. Nevertheless, at approximately the same iteration every > time, I run into malloc errors:
There might be a bug in numpy. It's unlikely that the bug is in Python. Let's bring it over to numpy-discussion. What version of numpy are you using? Can you give us a complete example that demonstrates the leak? -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco -- http://mail.python.org/mailman/listinfo/python-list