[Xapian-discuss] Moving to 1.0.x

Olly Betts olly at survex.com
Tue Oct 9 04:16:10 BST 2007


On Mon, Oct 08, 2007 at 09:04:59PM -0400, Mike Boone wrote:
> I commented out add_document and replace_document and it made no
> noticeable difference. Next I tried to comment out the word stemming
> and that knocked the 12MB/1000 docs down to about 6MB/1000 docs. So
> part of the problem looks to be there. The bulk of the rest of the
> indexing is new XapianDocuments and add_postings. I tried to
> explicitly set the XapianDocument object to NULL after the add/replace
> but it made no difference.

Aha!  The code SWIG generates leaks a small amount of memory when
constructing an object, both for PHP4 and PHP5.  I'll fix that...

I guess the version of SWIG we used for 0.8.5 didn't have this bug.

Cheers,
    Olly



More information about the Xapian-discuss mailing list