Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _man igores global matchers
- X-seq: zsh-workers 14665
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: _man igores global matchers
- Date: Fri, 1 Jun 2001 15:56:51 +0000
- In-reply-to: <200106011140.NAA12622@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200106011140.NAA12622@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author