Return-Path: X-Original-To: apmail-incubator-lucy-user-archive@www.apache.org Delivered-To: apmail-incubator-lucy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7B46B9101 for ; Sat, 26 Nov 2011 18:29:26 +0000 (UTC) Received: (qmail 36287 invoked by uid 500); 26 Nov 2011 18:29:26 -0000 Delivered-To: apmail-incubator-lucy-user-archive@incubator.apache.org Received: (qmail 36235 invoked by uid 500); 26 Nov 2011 18:29:25 -0000 Mailing-List: contact lucy-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucy-user@incubator.apache.org Delivered-To: mailing list lucy-user@incubator.apache.org Received: (qmail 36227 invoked by uid 99); 26 Nov 2011 18:29:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Nov 2011 18:29:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [68.116.39.62] (HELO rectangular.com) (68.116.39.62) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Nov 2011 18:29:20 +0000 Received: from marvin by rectangular.com with local (Exim 4.69) (envelope-from ) id 1RUMuu-0005wQ-95 for lucy-user@incubator.apache.org; Sat, 26 Nov 2011 10:24:00 -0800 Date: Sat, 26 Nov 2011 10:24:00 -0800 From: Marvin Humphrey To: lucy-user@incubator.apache.org Message-ID: <20111126182400.GA22818@rectangular.com> References: <20111117232428.GA10555@rectangular.com> <20111118141410.GA5863@rectangular.com> <20111123124111.GA24904@rectangular.com> <20111123203516.GA7441@rectangular.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: [lucy-user] Concurrent searching On Thu, Nov 24, 2011 at 01:58:08PM +0200, goran kent wrote: > On Wed, Nov 23, 2011 at 10:35 PM, Marvin Humphrey > 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