]> git.eshelyaron.com Git - emacs.git/commit
* lisp/emacs-lisp/lisp-mode.el (lisp-ppss): Fix performance bug
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 16 Jun 2023 17:14:27 +0000 (13:14 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 17 Jun 2023 21:10:50 +0000 (17:10 -0400)
commitf411cc3a9578eae4ea4549959109817a467f9a16
tree1de69a5320aa044c0d2f8791ffe4e91e5afa32ba
parentfef27d28fa70b52b6dc302d0b3ae1687499dd499
* lisp/emacs-lisp/lisp-mode.el (lisp-ppss): Fix performance bug

(nth 2 ppss) can be absent but not incorrect, so don't recompute ppss
for (nth 2 ppss) when (nth 2 ppss) is already provided.
When calling `lisp-indent-line` on all the lines in a region, this
sometimes introduced a gratuitous O(N²) complexity.
lisp/emacs-lisp/lisp-mode.el