mirror of
git://git.code.sf.net/p/sbcl/sbcl
synced 2026-09-10 07:26:40 -04:00
Reduce consing during SUBTYPEP on classes.
sb-pcl::class-has-a-forward-referenced-superclass-p, used in the implementation of subtypep on classes, conses because SOME can't perform the required inlining when used on the sequences of unknown type. (See lp#1070635)
This commit is contained in:
parent
69e6aef5e6
commit
d0f65b07a3
|
|
@ -852,7 +852,8 @@
|
|||
(or (when (forward-referenced-class-p class)
|
||||
class)
|
||||
(some #'class-has-a-forward-referenced-superclass-p
|
||||
(class-direct-superclasses class))))
|
||||
;; KLUDGE: SOME conses without knowing the type
|
||||
(the list (class-direct-superclasses class)))))
|
||||
|
||||
;;; This is called by :after shared-initialize whenever a class is initialized
|
||||
;;; or reinitialized. The class may or may not be finalized.
|
||||
|
|
|
|||
Loading…
Reference in a new issue