Hi,

        There seems to be a nasty memory leak in the interpolation module. It  
is as if data are not properly freed after a spline object is not  
longer use.
        You can test this by running this snippet of code. This has been  
happening for a while now and I am wondering if there was a patch for  
this problem or whether a fix was being planned?
        In the following example, the ram used by the script increases by  
about 2meg per sec...

from pygsl import spline
from numpy import *

def t():
     a = arange(100)
     b = arange(100)
     fctmu = spline.linear(len(a))
     fctmu.init(a,b)
     c = arange(100)

     t = map(fctmu.eval,c)


for i in range(100000):
     print "i:",i
     t()

        Cheers,
        Nor



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
pygsl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pygsl-discuss

Reply via email to