lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Wellnhofer <wellnho...@aevum.de>
Subject Re: [lucy-user] C library - DECREFing PolySearcher
Date Fri, 06 Jan 2017 12:20:44 GMT
On 06/01/2017 01:31, Serkan Mulayim wrote:
> I believe it is not directly related to the number of results returned. But
> something happens when we try to DECREF very quickly. I see that we need
> pthread. This makes me think that search and DECREF does not happen in the
> same thread, but I do not want to be confusing so no more comments
> regarding the threads :).

Lucy doesn't use threads internally.

> Has anyone seen this issue? Do you have any suggestions? Is there a concern
> in creating a new searcher and destroying it by DECREF every time (other
> than a possible slowness)? Is there a better way to destroy a searcher?

Recreating searchers is perfectly fine and DECREF is the only way to destroy a 
searcher. The only suggestion I have is to test with Valgrind or ASan.

Nick


Mime
View raw message