lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marvin Humphrey <mar...@rectangular.com>
Subject Re: [lucy-user] Concurrent searching
Date Sat, 26 Nov 2011 18:24:00 GMT
On Thu, Nov 24, 2011 at 01:58:08PM +0200, goran kent wrote:
> On Wed, Nov 23, 2011 at 10:35 PM, Marvin Humphrey
> <marvin@rectangular.com> wrote:
> > Something like this:
> >
> >    my @responses;
> >    for (my $i = 0; $i < $num_shards; $i++) {
> >        my $response  = $self->_retrieve_response_from_shard($i);
> >        $responses[$i] = $response->{retval};
> >    }
> 
> Thanks Marvin - that works quite well actually.  My famous 20s search
> time is now subsecond.

OK, now we're getting somewhere. :)

I've updated trunk to apply this technique and use blocking i/o.  I don't plan
further experimentation with non-blocking i/o and select() loops until after
we release 0.3.0.

Marvin Humphrey



Mime
View raw message