Subject: bug#61285: (Sometimes very) slow font-lock after %w in ruby-ts-mode

From: Yuan Fu <[email-masked]>
Date: Tue, 21 Feb 2023 00:14:03 -0800

> On Feb 20, 2023, at 7:12 PM, Dmitry Gutov <[email-masked]> wrote:
> 
> On 06/02/2023 05:20, Dmitry Gutov wrote:
>> On 06/02/2023 03:03, Dmitry Gutov wrote:
>>> And for associations.rb, the query times are 0.004322s vs 1.083029s.
>> Similarly, using tree-sitter-cli,
>>   time tree-sitter query associations-query.scm associations.rb
>> with a simple query also reports ~1.3s here.
> 
> Looks like this got fixed in https://github.com/tree-sitter/tree-sitter/commit/0b817a609f7cd3d7309a81dbfe96287c6945a085, just a week ago.

Great news!

> 
> And further improved (to the point where the delay seems entirely gone) in https://github.com/tree-sitter/tree-sitter/pull/2085.

Looks fantastic, this might render one of the reason for using the “fast mode” obsolete. 
> 
> Too bad it'll be a while until it makes in into popular distros.

See you in Emacs 30 ;-)

Yuan