Hello, Andi.
>> Also, can I contribute pool of PythonThread classes into PyLucene? This
>> class solves
>> problem (memory leak) of multiple recreation of PythonThread classes.
>> I think somebody asked same question here before. I have attached
>> class.
AV> Didn't I solve this bug in PyLucene 2.0 ?
AV> You had sent in a reproduction case and I fixed the leak in creating
AV> PythonThread instances which had to do with some reference cycle.
Oh. Really... :) I have just checked 2.0.0-1 and it is okay in Linux!
But It has very noticeable leaks in windows. :( I guess all problems
around windows platform.
Here is simple example to reproduce the trouble.
--
Yura Smolsky,
http://altervisionmedia.com/
#!/usr/local/bin/python
from PyLucene import *
from Queue import *
import time
def realTask(num):
pass
for i in xrange(1000000):
th = PythonThread(target=realTask, args=(i,))
th.start()
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev