From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5933 invoked by alias); 18 May 2015 22:11:56 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35194 Received: (qmail 24637 invoked from network); 18 May 2015 22:11:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.0 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= Message-ID: <555A63A4.8060809@thequod.de> Date: Tue, 19 May 2015 00:11:48 +0200 From: Daniel Hahler User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Zsh Hackers' List Subject: Smarter matcher-list: skip previous sets Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit -----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-----