Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: _man igores global matchers



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