On Tue, 20 Mar 2007, Ofer Nave wrote:
What if I had subclassed the Query or Similarity class? Wouldn't the Java
searcher constantly be calling back into my Python code while executing the
query, thereby dramatically reducing the portion of time that is fully
concurrent?
Indeed, anytime you cross from Python -> C++/Java the GIL is released.
And anytime you cross back C++/Java -> Python because the call returns or
calls back into Python, the GIL is reacquired.
Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev