[pylucene-dev] momery leak with PythonThread
Yura Smolsky
info at altervisionmedia.com
Thu Apr 27 08:13:24 PDT 2006
Hello ALL.
I have following program. It should starts threads and then frees
them. When I use for this task threading.Thread then there are not
leaks here. When I use PyLucene.PythonThread then I got very noticeable
memory leak.
PyLucene is last from trunk. Python is 2.4.2. Tested on winXP and debian systems.
#!/usr/bin/python2.4
import PyLucene
import time
def funny(num):
l = []
l.append(num)
#time.sleep(0.001)
ths = []
for i in range(1000000):
th = PyLucene.PythonThread(target=funny, args=[i])
th.start()
Yura Smolsky,
http://altervisionmedia.com/
More information about the pylucene-dev
mailing list