* lisp/emacs-lisp/cl-generic.el (cl--generic-compiler): Clarify the test
Use `compiled-function-p`.
This commit is contained in:
parent
d22a3e5afe
commit
4e260bfc47
1 changed files with 1 additions and 1 deletions
|
@ -672,7 +672,7 @@ The set of acceptable TYPEs (also called \"specializers\") is defined
|
||||||
;; compiled. Otherwise the byte-compiler and all the code on
|
;; compiled. Otherwise the byte-compiler and all the code on
|
||||||
;; which it depends needs to be usable before cl-generic is loaded,
|
;; which it depends needs to be usable before cl-generic is loaded,
|
||||||
;; which imposes a significant burden on the bootstrap.
|
;; which imposes a significant burden on the bootstrap.
|
||||||
(if (consp (lambda (x) (+ x 1)))
|
(if (not (compiled-function-p (lambda (x) (+ x 1))))
|
||||||
(lambda (exp) (eval exp t))
|
(lambda (exp) (eval exp t))
|
||||||
;; But do byte-compile the dispatchers once bootstrap is passed:
|
;; But do byte-compile the dispatchers once bootstrap is passed:
|
||||||
;; the performance difference is substantial (like a 5x speedup on
|
;; the performance difference is substantial (like a 5x speedup on
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue