From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25685 invoked from network); 1 Jun 2001 15:58:01 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 1 Jun 2001 15:58:01 -0000 Received: (qmail 15081 invoked by alias); 1 Jun 2001 15:57:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14665 Received: (qmail 15059 invoked from network); 1 Jun 2001 15:57:51 -0000 From: "Bart Schaefer" Message-Id: <1010601155651.ZM20102@candle.brasslantern.com> Date: Fri, 1 Jun 2001 15:56:51 +0000 In-Reply-To: <200106011140.NAA12622@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: _man igores global matchers" (Jun 1, 1:40pm) References: <200106011140.NAA12622@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: _man igores global matchers MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 1, 1:40pm, Sven Wischnowsky wrote: } } This uses _path_files' builtin compfiles to try to get smarter glob } patterns with respect to the matchers in use. This definitely appears to be the way to go. It's not as fast as caching all the man page basenames in a huge array, but it's quite a bit faster than globbing up that array in the first place. } It gives me acceptable speed but could still be improved, e.g. by } caching the man dirs to use (using a hash with $words[2] as the key if } it gives the section). I think it's actually good enough as is, but I know there are still people out there with slow disks and sub-200MHz CPUs, so ... -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net