From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26756 invoked by alias); 29 Jan 2016 09:18:17 -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: 37830 Received: (qmail 25604 invoked from network); 29 Jan 2016 09:18:15 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Date: Fri, 29 Jan 2016 09:18:13 +0000 From: Daniel Shahaf To: Zsh hackers list Subject: Re: Slow highlighting (Re: "drop-in replacement" and transpose-words-match) Message-ID: <20160129091813.GB8420@tarsus.local2> References: <160111233259.ZM6719@torch.brasslantern.com> <160118223126.ZM28565@torch.brasslantern.com> <160119195608.ZM31931@torch.brasslantern.com> <20160123235303.GE20278@tarsus.local2> <160123222057.ZM16192@torch.brasslantern.com> <20160126225008.GB4731@tarsus.local2> <160126203105.ZM2779@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <160126203105.ZM2779@torch.brasslantern.com> User-Agent: Mutt/1.5.23 (2014-03-12) Bart Schaefer wrote on Tue, Jan 26, 2016 at 20:31:05 -0800: > On Jan 26, 10:50pm, Daniel Shahaf wrote: > } Subject: Re: Slow highlighting (Re: "drop-in replacement" and transpose-wo > } > } fned with z-sy-h is slow. > } > } vared with z-sy-h is slow. > } > } > What about with a history line containing a function definition? > } > } Also slow. > } > } I also tested it as a single line, and that was still slow: > > So, it's not "zed", it's any case where you're doing syntax analysis of > a function definition. > > Time to start eliminating the set of highlighters one by one until you > find one that seems to be the culprit? By default, and when reproducing the problem, only the 'main' highlighter is enabled. The problem doesn't occur with only the 'cursor' highlighter enabled («ZSH_HIGHLIGHT_HIGHLIGHTERS=(cursor)»), nor with no highlighters enabled («ZSH_HIGHLIGHT_HIGHLIGHTERS=()»). Thanks again, Daniel