Subject: bug#24048: 25.0.95; syntax-ppss can be slow

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 03 Dec 2021 17:26:50 +0100

Aaron Jensen <[email-masked]> writes:

> I can still reproduce it with the specified repro:
>
> Load
> https://gist.githubusercontent.com/aaronjensen/d4cd40347a916dd36c8239afecf64a7d/raw/b52440bb51b96193a365a7f4cc1c8733ba98476f/syntax-ppss-slow-repro.ex
> Install and enable elixir-mode
>
> At top of file:
> M-: (benchmark 100 '(syntax-ppss))
>
> On line 71:
> M-: (benchmark 100 '(syntax-ppss))
>
> For me it's 0.1ms vs 5ms

Thanks for checking.

Perhaps Stefan has some insights here; added to the CCs.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no