[Xapian-discuss] Moving to 1.0.x
Olly Betts
olly at survex.com
Wed Oct 10 15:57:37 BST 2007
On Wed, Oct 10, 2007 at 08:59:46AM -0400, Mike Boone wrote:
> $stemmer = new XapianStem('english');
>
> for ($i = 0; $i < 1000000; ++$i) {
> print memory_get_usage()."\n";
> $doc = new XapianDocument();
> $stemmed_word = $stemmer->apply('testing');
> }
>
> With that code the memory usage grew from 456KB to 15.5MB. That might
> be all of my problem as I stem a lot of words per document.
OK, there's another leak in the SWIG generated code when handling a
parameter of type const std::string &. I've fixed that too, and updated
the patches:
http://oligarchy.co.uk/xapian/patches/xapian-php4-memory-leak-fix.patch
http://oligarchy.co.uk/xapian/patches/xapian-php5-memory-leak-fix.patch
Cheers,
Olly
More information about the Xapian-discuss
mailing list