]> git.eshelyaron.com Git - emacs.git/commit
Optimise `apply` with `cons` in tail argument
authorMattias Engdegård <mattiase@acm.org>
Thu, 12 Jan 2023 13:07:45 +0000 (14:07 +0100)
committerMattias Engdegård <mattiase@acm.org>
Mon, 16 Jan 2023 18:42:31 +0000 (19:42 +0100)
commit2a85d7a07c16dd854490b5eff72930d4a80b1415
treefaefd1f985d871d82ddf89305fea5b5a9cc76e2b
parent77659bd46345b86159d8a5d4b6f4993ec20c30a6
Optimise `apply` with `cons` in tail argument

* lisp/emacs-lisp/byte-opt.el (byte-optimize-apply): Transform

  (apply F ... (cons X Y)) -> (apply F ... X Y)

This pattern is seen both in hand-written code and in backquote
expansions.
lisp/emacs-lisp/byte-opt.el