Subject: Re: bug#16786: 24.2; PostScript file with long lines locks up UI

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 13 Aug 2020 12:38:11 +0200

Stefan Monnier <[email-masked]> writes:

>>   (progn
>>     (switch-to-buffer "test")
>>     (insert (make-string 100000 97))
>>     (ps-mode)
>>   )
>
> For this test, the main bottleneck seems to be the
>
>    ("([^()\n%]*\\|[^()\n]*)" . font-lock-warning-face)

[...]

> This can be fixed by anchoring the search, e.g. with the patch below.
> Of course, a small variation of the above test leads to
> other bottlenecks.

The patch no longer applies...  but on the other hand, the test case
doesn't seem to be a problem any more -- everything seems to be fine in
that area in Emacs 28.

So I'm going to go ahead and close this bug report.  If the problem
still exists, please respond to this email and we'll reopen the bug
report.

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