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,T_DKIM_INVALID
	autolearn=ham autolearn_force=no version=3.4.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=brasslantern-com.20150623.gappssmtp.com; s=20150623;
        h=from:message-id:date:in-reply-to:comments:references:to:subject
         :mime-version:content-type;
        bh=/A322D89OyQtTnFalvtJlkbFYZJKHs+ceES2Xe1OJhU=;
        b=mcjvGx8JtdyLaRC/zAjNIjYWatWFQjweoZ4VLst4yJ6bbnxX5FVa0fTauI/z7EpZax
         eNQB6Ypgc0eifV9mE/dYd18M7wwfM7SuYqFa0KOgo40Y1Y9aN03x4aeIiHFRL9lLDnyX
         Td/SJowQWDwyVFdRcbr5dpvDNIpju6qjzhTrqMDrmoOG7EkahhoZC54TWUa2GH7bovFd
         9F5JMoL0c8ehR/VRIdEznCEb8csAvao84o5VIlN/wYmAF6NC0zagax3dAqQrJviEpfA6
         qwKJkQPL3cD9+3cFEy5Bz9Q+m+mXfcPmICLI2WwqtTKKQQkV09jPVIQQSxP42kV3TBPb
         nT5Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:message-id:date:in-reply-to:comments
         :references:to:subject:mime-version:content-type;
        bh=/A322D89OyQtTnFalvtJlkbFYZJKHs+ceES2Xe1OJhU=;
        b=VtAP9ISES0ijdj/HC2YKON1ARRr3FXrLA57bSIbPyPC7W5w3qfmo9KEnf+32WACz0i
         +bxdQ6lvjW8PzbPkSxgEz9AsaBgn6zJN2naSEtRmULdawOrcMnLI/mVol8ZEU/yqWNgh
         hKDUSkXS8iWKzCfqs4GsyXH1rjZlrleMHHK4ozUl4TVXAjpFo5Fb69uSsMFQHZMFxvLC
         PV/d6WJpmTVpDjl3WRhA7voIGs2L64cVAmXlSup/I9t2pVaz6ZORD4dAuW8I6pXY9NPN
         VlGPaRHNQgM29E/AFN8VWludzTqzALH9J2fU3Ki6AtF6AhKHO9JmZVozsBlgUTaelAVp
         +vqg==
X-Gm-Message-State: AG10YORuGvSnUssy3zq9M02I7+h5v3/saeGnIbWlL9GirjcmztwMJP+hscWhfnQFx7f/QA==
X-Received: by 10.98.14.69 with SMTP id w66mr39501040pfi.144.1453869022912;
        Tue, 26 Jan 2016 20:30:22 -0800 (PST)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160126203105.ZM2779@torch.brasslantern.com>
Date: Tue, 26 Jan 2016 20:31:05 -0800
In-Reply-To: <20160126225008.GB4731@tarsus.local2>
Comments: In reply to Daniel Shahaf <d.s@daniel.shahaf.name>
        "Re: Slow highlighting (Re: "drop-in replacement" and transpose-words-match)" (Jan 26, 10:50pm)
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>
X-Mailer: OpenZMail Classic (0.9.2 24April2005)
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Slow highlighting (Re: "drop-in replacement" and transpose-words-match)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Seq: zsh-workers 37806

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?  Glancing at the github pages,
there seem to be several hightlighters on by default.  My bet would be
on the one that looks for balanced braces, because there is always an
unmatched open brace lurking at the start of the function.

Of course it a combination of highlighters may be involved, which would
be more difficult to isolate.

