On Sun, Jul 29, 2007 at 12:33:53PM +0200, Benjamin Krause wrote:
> Hello everyone,
> 
> we've recently discovered a memory leak in the
> PerFieldAnalyzer. If you use the PerFieldAnalyzer
> (which you acutally should), you should switch
> to a pure ruby version of that analyzer. The C
> version of the Analyzer is consuming memory
> on every analyzing request.
> 
> You can find an example script to verify the
> leak[1]. Furthermore we've added a
> workaround, building a PerFieldAnalyzer
> in pure ruby[2]. You can read more about the
> leak on the omdb tech blog[3].

Great work!

And now included in acts_as_ferret's trunk :-)

I put your new PerFieldAnalyzer in the Ferret::Analysis namespace so it
hides the original implementation and no changes to existing code are
needed.

cheers,
Jens


-- 
Jens Krämer
http://www.jkraemer.net/ - Blog
http://www.omdb.org/     - The new free film database
_______________________________________________
Ferret-talk mailing list
Ferret-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to