[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New hook before-region-change-functions wanted

From: Stefan Monnier
Subject: Re: New hook before-region-change-functions wanted
Date: Sat, 09 Sep 2017 09:46:11 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

>> The mechanism will also work a little faster with the new hook than
>> without it, given that changes of restriction are more rarely
>> effected than syntax-ppss is called.
> I don't imagine the performance difference will be in any way
> noticeable. It's just one "if".

Furthermore, this `if` will avoid two cache switches when
a save-restriction+widen happens between two syntax-ppss calls.

All in all, I think both approaches would work equally well,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]