remove performance comments on things already split out
This commit is contained in:
parent
80beace196
commit
c43ff5a848
1 changed files with 3 additions and 6 deletions
|
|
@ -428,7 +428,6 @@
|
||||||
[obj type segment scope]
|
[obj type segment scope]
|
||||||
(type-dispatch type)))
|
(type-dispatch type)))
|
||||||
|
|
||||||
;; TODO(Joshua): For performance, turn this into a bunch of specific defmethods
|
|
||||||
(defmethod serialize-into :default
|
(defmethod serialize-into :default
|
||||||
[obj type segment scope]
|
[obj type segment scope]
|
||||||
(if-some [prim-layout (primitive-type type)]
|
(if-some [prim-layout (primitive-type type)]
|
||||||
|
|
@ -507,14 +506,12 @@
|
||||||
[segment type]
|
[segment type]
|
||||||
(type-dispatch type)))
|
(type-dispatch type)))
|
||||||
|
|
||||||
;; TODO(Joshua): For performance, turn this into a bunch of specific defmethods
|
|
||||||
(defmethod deserialize-from :default
|
(defmethod deserialize-from :default
|
||||||
[segment type]
|
[segment type]
|
||||||
(if-some [prim (primitive-type type)]
|
(if-some [prim (primitive-type type)]
|
||||||
(with-acquired [(segment-scope segment)]
|
|
||||||
(-> segment
|
(-> segment
|
||||||
(deserialize-from prim)
|
(deserialize-from prim)
|
||||||
(deserialize* type)))
|
(deserialize* type))
|
||||||
(throw (ex-info "Attempted to deserialize a non-primitive type that has not been overriden"
|
(throw (ex-info "Attempted to deserialize a non-primitive type that has not been overriden"
|
||||||
{:type type
|
{:type type
|
||||||
:segment segment}))))
|
:segment segment}))))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue