[Xapian-discuss] Search::Xapian really slow compared to C++ Xapian

Olly Betts olly at survex.com
Wed Sep 29 09:17:38 BST 2010


On Tue, Sep 28, 2010 at 08:14:01PM +0200, Hanzz Solo wrote:
> Is it normal that the Perl code is so much slower and uses this enormous
> amount of RAM?

This doesn't make much sense - the Perl bindings should just be a thin
wrapper around the C++ code, so it's strange that they are so much slower.

All I can think is that either the two versions aren't actually equivalent,
or there's something lazily not done in the C++ version which the Perl
bindings force to be done, or you're pulling a lot of data out and that
ends up adding a lot of overhead in Perl.

Can you post the code for the Perl and C++ versions of the searcher?

Cheers,
    Olly



More information about the Xapian-discuss mailing list