Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
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 <d.s@daniel.shahaf.name>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Slow highlighting (Re: "drop-in replacement" and
 transpose-words-match)
Message-ID: <20160129091813.GB8420@tarsus.local2>
References: <160111233259.ZM6719@torch.brasslantern.com>
 <CAKc7PVDhxbVgmV7WcGgyDzMmWSjwQ=7=LExXTwr7YvPzPpn2RA@mail.gmail.com>
 <160118223126.ZM28565@torch.brasslantern.com>
 <CAKc7PVB-X+DYVEHRqSoOiDAjNeTsVyz=EN72FHQuF=AnRmh65A@mail.gmail.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)
X-Seq: zsh-workers 37830

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

