]> git.eshelyaron.com Git - emacs.git/commit
Remove redundant slot validation in eieio-persistent-read
authorEric Abrahamsen <eric@ericabrahamsen.net>
Fri, 28 Aug 2020 00:17:19 +0000 (17:17 -0700)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Fri, 28 Aug 2020 15:20:28 +0000 (08:20 -0700)
commit4d741e577fbab8adf444c6c1930525bb7e8fc08d
treee526dc264c9a510b7cbfbfe394e23144a506fa92
parent649a52822f207e1d302f0e089010b84d5e882281
Remove redundant slot validation in eieio-persistent-read

Actual object creation (in `make-instance') will later run all slot
values through cl-typep, which does a better job of validation. This
validation is redundant, and slows the read process down.

* lisp/emacs-lisp/eieio-base.el (eieio-persistent-fix-value): Rename
from `eieio-persistent-validate/fix-slot-value', as we no longer
validate, and we don't care about the slot definition.
(eieio-persistent-slot-type-is-class-p): Delete function.
(eieio-persistent-convert-list-to-object): Still call
`eieio--full-class-object', to trigger an autoload if necessary, but
discard the return value.
lisp/emacs-lisp/eieio-base.el