From: Daniel Hahler <genml+zsh-workers@thequod.de>
To: Zsh Hackers' List <zsh-workers@zsh.org>
Subject: Smarter matcher-list: skip previous sets
Date: Tue, 19 May 2015 00:11:48 +0200 [thread overview]
Message-ID: <555A63A4.8060809@thequod.de> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've noticed that my matcher-list setup causes a (possibly expensive)
completion function to be called multiple times, although the input was
not be changed by the matcher-list substitution.
The functrace is:
_manage.py:4 _manage.py:465 (eval):1 _dispatch:63 _normal:40 _complete:117
_main_complete:194 _zsh_highlight_widget_complete-word:0 zsh:1
My matcher-list setup:
zstyle ':completion:*' matcher-list '' '+m:{a-z}={A-Z}' '+m:{A-Z}={a-z}' \
'+r:|[._-]=* r:|=*' '+l:|=* r:|=*'
I think it would be smart if these calls would be skipped in case the
input has not changed (because it was all lower-case in the beginning).
Regards,
Daniel.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iD8DBQFVWmOkfAK/hT/mPgARAoJ2AKCM8iSQ8kaL92BTCT3ojQaxYHp1ywCgzz8Z
GEJGEy+nvPR9VBEbfrdfUDc=
=Q/cu
-----END PGP SIGNATURE-----
next reply other threads:[~2015-05-18 22:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-18 22:11 Daniel Hahler [this message]
2015-05-19 0:44 ` Bart Schaefer
2015-05-19 8:50 ` Daniel Hahler
2015-05-19 22:55 ` Bart Schaefer
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=555A63A4.8060809@thequod.de \
--to=genml+zsh-workers@thequod.de \
--cc=zsh-workers@zsh.org \
/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).