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

From: Dmitry Gutov <[email-masked]>
Date: Tue, 21 Feb 2023 05:12:17 +0200

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.

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

Too bad it'll be a while until it makes in into popular distros.