bug-gnu-emacs
[Top][All Lists]
Advanced

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

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


From: Lars Ingebrigtsen
Subject: bug#24048: 25.0.95; syntax-ppss can be slow
Date: Wed, 01 Dec 2021 20:47:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Aaron Jensen <aaronjensen@gmail.com> writes:

> Ultimately, it seems like it may be worth reconsidering this condition:
>
> (and old-pos (< (- pos old-pos)
>     ;; The time to use syntax-begin-function and
>     ;; find PPSS is assumed to be about 2 * distance.
>     (* 2 (/ (cdr (aref syntax-ppss-stats 5))
>     (1+ (car (aref syntax-ppss-stats 5)))))))

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

This bit is now:

        (if (and old-pos (< (- pos old-pos)
                            ;; The time to use syntax-begin-function and
                            ;; find PPSS is assumed to be about 2 * distance.
                            (let ((pair (aref syntax-ppss-stats 5)))
                              (/ (* 2 (cdr pair)) (car pair)))))

I.e., the last clause is gone.  I don't know whether this affects the
issue you were seeing, though.  Is syntax-ppss still mis-caching things
for you?

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





reply via email to

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