diff options
author | Alan Mackenzie <acm@muc.de> | 2020-12-14 19:38:52 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2020-12-14 19:38:52 +0000 |
commit | 9022df70270243f211c54ccd66800320148b8434 (patch) | |
tree | 096767d7a6f6c5776d2da9fe7ca1c4e62af16f0d /lisp/emacs-lisp/avl-tree.el | |
parent | cd81739af17406cad0eb121cd979350e45cd1b92 (diff) | |
download | emacs-9022df70270243f211c54ccd66800320148b8434.tar.gz emacs-9022df70270243f211c54ccd66800320148b8434.tar.bz2 emacs-9022df70270243f211c54ccd66800320148b8434.zip |
Optimise c-parse-state for large buffers with few (if any) braces.
* lisp/progmodes/cc-engine (c-get-fallback-scan-pos): Search a maximum of
50,000 characters back for the two BODs. Return nil if we dont' find them.
(c-parse-state-get-strategy): For strategy `forward', always use the position
`good-pos' for `start-point', even when there's a change of current macro.
Deal with a possible return value of nil from c-get-fallback-scan-pos (as
above).
(c-invalidate-state-cache-1): For `c-state-cache-good-pos', instead of
sometimes using the minimum scan pos (leading to extensive scanning of the
entire buffer) use a point close to `here'.
Diffstat (limited to 'lisp/emacs-lisp/avl-tree.el')
0 files changed, 0 insertions, 0 deletions