From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23653 invoked from network); 28 Feb 2008 17:54:41 -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=AWL,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; 28 Feb 2008 17:54:41 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 71836 invoked from network); 28 Feb 2008 17:54:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Feb 2008 17:54:34 -0000 Received: (qmail 6907 invoked by alias); 28 Feb 2008 17:54:29 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24624 Received: (qmail 6889 invoked from network); 28 Feb 2008 17:54:29 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 28 Feb 2008 17:54:29 -0000 Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by bifrost.dotsrc.org (Postfix) with ESMTP id 85D7F8026E0B for ; Thu, 28 Feb 2008 18:54:25 +0100 (CET) Received: from torch.brasslantern.com ([71.121.18.67]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JWY00LWMN2GNX85@vms044.mailsrvcs.net> for zsh-workers@sunsite.dk; Thu, 28 Feb 2008 11:54:17 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m1SHsFEq015687; Thu, 28 Feb 2008 09:54:15 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m1SHsEwJ015686; Thu, 28 Feb 2008 09:54:14 -0800 Date: Thu, 28 Feb 2008 09:54:14 -0800 From: Bart Schaefer Subject: Re: Bug#468386: zsh-beta: Slow command completion In-reply-to: <20080228172715.GA12451@scowler.net> To: zsh-workers@sunsite.dk Cc: 468386@bugs.debian.org, Romain Francoise Message-id: <080228095414.ZM15685@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <87zltldnde.fsf@elegiac.orebokech.com> <20080228172715.GA12451@scowler.net> Comments: In reply to Clint Adams "Re: Bug#468386: zsh-beta: Slow command completion" (Feb 28, 12:27pm) X-Virus-Scanned: ClamAV 0.91.2/6027/Thu Feb 28 17:20:09 2008 on bifrost X-Virus-Status: Clean On Feb 28, 12:27pm, Clint Adams wrote: } Subject: Re: Bug#468386: zsh-beta: Slow command completion } } On Thu, Feb 28, 2008 at 06:03:41PM +0100, Romain Francoise wrote: } > zsh-beta's command cache is apparently broken: completing a command } > twice takes the same amount of time both times, whereas in zsh4 } > (from the zsh package) the first completion takes a few seconds and } > subsequent completions are much faster. } } This looks to be a side effect of 24570. Any ideas? Scrap the part of _path_commands that reads "whatis" output? As I said in 24570, I think that was a truly horrible idea in the first place. Or at least protect it with a style that is not generally set for any other purpose. The workaround for Romain is probably to enable caching of the output by creating a cache-policy style for :completion::complete:-command-:: context.