]> git.eshelyaron.com Git - emacs.git/commit
Speed up glob matching 2x
authorJoão Távora <joaotavora@gmail.com>
Mon, 1 Feb 2021 17:23:07 +0000 (17:23 +0000)
committerJoão Távora <joaotavora@gmail.com>
Mon, 1 Feb 2021 17:52:29 +0000 (17:52 +0000)
commitaa4e58409c6c7a394a9a1292b1f5e34d5377323d
treec8408cd0180d772b76fd1d4958e6591d597f9dde
parent176a6df74e0bbf3e360f2af72c02a70211fd5431
Speed up glob matching 2x

with-temp-buffer was taking a lot of time, presumably because it kills
the buffer.  Since emacs is single-threaded, we can safely reuse a
single buffer.

* eglot.el (eglot--glob-parse): Simplify grammar.
(eglot--glob-compile): Don't with-temp-buffer.

GitHub-reference: per https://github.com/joaotavora/eglot/issues/602
lisp/progmodes/eglot.el