]> git.eshelyaron.com Git - emacs.git/commit
Optimise assoc and rassoc with symbol key to assq and rassq
authorMattias Engdegård <mattiase@acm.org>
Mon, 6 Jul 2020 10:51:04 +0000 (12:51 +0200)
committerMattias Engdegård <mattiase@acm.org>
Tue, 7 Jul 2020 15:55:20 +0000 (17:55 +0200)
commitdf3ece9d2ed61c9526dbf718e3c96d72bd53dccb
tree2939fca286698ec92b33543ad4970ea6f27b8969
parent1a850f4b20d11938d68270147d3d5ebc3c4899f4
Optimise assoc and rassoc with symbol key to assq and rassq

This is the same transformation made for member to memq.

* lisp/emacs-lisp/byte-opt.el (byte-optimize-assoc): New function.
(assoc, rassoc): Set the byte-optimizer property.
lisp/emacs-lisp/byte-opt.el