Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Smarter matcher-list: skip previous sets
- X-seq: zsh-workers 35194
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: Zsh Hackers' List <zsh-workers@xxxxxxx>
- Subject: Smarter matcher-list: skip previous sets
- Date: Tue, 19 May 2015 00:11:48 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= content-transfer-encoding:content-type:content-type:subject :subject:mime-version:user-agent:from:from:date:date:message-id :received:received; s=postfix2; t=1431987109; bh=iKWLmMh1ShVUnFy 8zRUOInR2/fvRr7Fj90ZRLage33U=; b=I2ABCM8Al4YHBtGjzwMEuguk2pTB90S nThE7hgA/gMD5ye0eqlcEDPWwWURIyZA/39oPBztMtr3rldElAUm/u2lIRnJ01dU T9/Dpah/lzM7Ko6SlZYnxH47vmcvK46ySDrACD8HSl3fa6b5/vaUL49UB7NCL5Og 6mCEY3bTuXWM=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
-----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-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author