On Thu, Nov 24, 2011 at 01:58:08PM +0200, goran kent wrote: > On Wed, Nov 23, 2011 at 10:35 PM, Marvin Humphrey > <[email protected]> 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
