From: Bart Schaefer <schaefer@brasslantern.com>
To: Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru>,
Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: Caching between matchers
Date: Sat, 8 Dec 2001 17:51:31 +0000 [thread overview]
Message-ID: <1011208175131.ZM24707@candle.brasslantern.com> (raw)
In-Reply-To: <1007824073.29799.1.camel@localhost.localdomain>
On Dec 8, 6:07pm, Borsenkow Andrej wrote:
} Subject: Caching between matchers
}
} When completion generates list of matche on-the-fly (like installed RPMs
} or list of available RPMs in urpmi completion) it currently does it for
} every matcher that is tried. If list is long (urpmi has ~3000 packages
} in database) or needs some time to build (esp. when forking off) it may
} take quite a bit of time.
This is why the caching mechanism (_store_cache, _retrieve_cache, and
_cache_invalid) was introduced; _urpmi should be doing its own caching.
} Because the list obviously is not changed between matchers, is it
} possible to reuse it?
This isn't precisely true. Many completers test $_matcher_num, which is
set by main complete, and do nothing if it is greater than 1. On the
other hand, _path_files tests whether the *last* matcher is being tried,
and may add more path expansions to the list in that case.
} Actually, is it possible to traverse matchers list internally in
} compadd?
I don't think so, because the matchers may be traversed multiple times
(e.g. the _prefix and _ignored completers re-traverse the matcher-list).
--
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
prev parent reply other threads:[~2001-12-08 17:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-08 15:07 Borsenkow Andrej
2001-12-08 17:51 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1011208175131.ZM24707@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=Andrej.Borsenkow@mow.siemens.ru \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).