]> git.eshelyaron.com Git - emacs.git/commit
(pcase--app-subst-match): Try and fix performance regression (bug#71398)
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 8 Jun 2024 21:34:30 +0000 (17:34 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Jun 2024 05:32:33 +0000 (07:32 +0200)
commit9da4f4fe4d58fa44be680f37a2cf038d72c8329d
tree97747d7069a9fada21bdbb7abe00f2f53ac6ab2c
parentc5ee05744955eb7166b2222379290926f1913ac8
(pcase--app-subst-match): Try and fix performance regression (bug#71398)

* lisp/emacs-lisp/pcase.el (pcase--app-subst-match): Optimize matches
against (quote VAL).
* test/lisp/emacs-lisp/pcase-tests.el (pcase-tests-quote-optimization):
Add new test case.

(cherry picked from commit e9a0256a556622474bcbb015f88d790666db2cc9)
lisp/emacs-lisp/pcase.el
test/lisp/emacs-lisp/pcase-tests.el