InvalidArgsError - passing TopDocs object

2010-08-24 Thread Roman Chyla
Hi, I am trying to understand PyLucene more and to see if it is faster to retrieve result ids with java instead of with Python. The use case is to retrieve millions of recids -- with python, 700K ids takes about 1.5s. (even if query takes just fraction of that). I wrote a simple java code (works

Re: InvalidArgsError - passing TopDocs object

2010-08-24 Thread Andi Vajda
On Aug 24, 2010, at 8:03, Roman Chyla wrote: I am trying to understand PyLucene more and to see if it is faster to retrieve result ids with java instead of with Python. The use case is to retrieve millions of recids -- with python, 700K ids takes about 1.5s. (even if query takes just fraction

Re: InvalidArgsError - passing TopDocs object

2010-08-24 Thread Roman Chyla
Thank you very much, Andi. Best, roman On Tue, Aug 24, 2010 at 5:36 PM, Andi Vajda wrote: > > On Aug 24, 2010, at 8:03, Roman Chyla wrote: > >> I am trying to understand PyLucene more and to see if it is faster to >> retrieve result ids with java instead of with Python. The use case is >> to

do the Java and Python garbage collectors talk to each other, with JCC?

2010-08-24 Thread Bill Janssen
I'm starting to see traces like the following in my UpLib (OS X 10.5.8, 32-bit Python 2.5, Java 6, JCC-2.6, PyLucene-2.9.3) that indicate an out-of-memory issue. I spawn a lot of short-lived threads in Python, and each of them is "attached" to Java, and "detached" after the "run" method returns.

Re: do the Java and Python garbage collectors talk to each other, with JCC?

2010-08-24 Thread Andi Vajda
On Tue, 24 Aug 2010, Bill Janssen wrote: I'm starting to see traces like the following in my UpLib (OS X 10.5.8, 32-bit Python 2.5, Java 6, JCC-2.6, PyLucene-2.9.3) that indicate an out-of-memory issue. I spawn a lot of short-lived threads in Python, and each of them is "attached" to Java, and