The second question: You can manually invoke the python garbage collector by "import gc; gc.collect()" Never tried it on a PyLucene object myself. Don't know if it will work as expected.

A PyLucene object is a regular python object wrapping a C++ pointer to the Java object. When the PyLucene object is released by python, it also tells the PyLucene/GCJ layer (function releaseObject in PyLucene.i) that it is not holding a reference to it anymore and, from then on, libgcj may collect it at its convenience.


Andi..


Best regards

/rune

On 21. feb. 2005, at 12.23, Yura Smolsky wrote:

Hello.

Is there a way to start garbage collector manually to free memory
taken by PyLucene objects?


"So as far as I'm concerned, SOAP is not XML, nor is it useful to even a fraction of the degree to which it is destructive." - Uche Ogbuji

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to