From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19442 invoked from network); 2 Mar 2008 19:30:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 2 Mar 2008 19:30:13 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 26136 invoked from network); 2 Mar 2008 19:30:07 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Mar 2008 19:30:07 -0000 Received: (qmail 19908 invoked by alias); 2 Mar 2008 19:30:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24654 Received: (qmail 19887 invoked from network); 2 Mar 2008 19:30:00 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 2 Mar 2008 19:30:00 -0000 Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by bifrost.dotsrc.org (Postfix) with ESMTP id 768798028C4E for ; Sun, 2 Mar 2008 20:29:56 +0100 (CET) Received: from smtp4-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp4-g19.free.fr (Postfix) with ESMTP id 3C23B3EA125; Sun, 2 Mar 2008 20:29:56 +0100 (CET) Received: from elegiac.orebokech.com (home.orebokech.com [82.67.41.165]) by smtp4-g19.free.fr (Postfix) with ESMTP id 28F0C3EA11F; Sun, 2 Mar 2008 20:29:55 +0100 (CET) Received: by elegiac.orebokech.com (Postfix, from userid 1000) id BD5EC3B2E9; Sun, 2 Mar 2008 20:29:55 +0100 (CET) From: Romain Francoise To: Bart Schaefer Cc: zsh-workers@sunsite.dk, 468386@bugs.debian.org Subject: Re: Bug#468386: zsh-beta: Slow command completion Organization: The Debian Project References: <87zltldnde.fsf@elegiac.orebokech.com> <20080228172715.GA12451@scowler.net> <080228095414.ZM15685@torch.brasslantern.com> <87bq5xupu3.fsf@elegiac.orebokech.com> <080302103252.ZM11919@torch.brasslantern.com> Date: Sun, 02 Mar 2008 20:29:55 +0100 In-Reply-To: <080302103252.ZM11919@torch.brasslantern.com> (Bart Schaefer's message of "Sun, 02 Mar 2008 10:32:52 -0800") Message-ID: <87zltgudos.fsf@elegiac.orebokech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.91.2/6080/Sun Mar 2 20:13:52 2008 on bifrost X-Virus-Status: Clean Bart Schaefer writes: > It belatedly occurs to me that the following might work as a > replacement for ${(k)commands[(I)$PREFIX]} and speed things up, > except on the very first call when the cache is populating (which > may take a very long time). That does speed things up considerably, it's almost as fast as before and definitely usable again. Thanks! -- Romain Francoise http://people.debian.org/~rfrancoise/