GNU bug report logs -
#24048
25.0.95; syntax-ppss can be slow
Previous Next
Reported by: Aaron Jensen <aaronjensen <at> gmail.com>
Date: Thu, 21 Jul 2016 14:31:02 UTC
Severity: normal
Tags: moreinfo
Found in version 25.0.95
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 24048 <at> debbugs.gnu.org (full text, mbox):
Aaron Jensen <aaronjensen <at> 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
This bug report was last modified 3 years and 222 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.