fix port bug.perf issue in cljs: transient code path was never taken.
This commit is contained in:
parent
3de578463f
commit
e1d2d6c848
1 changed files with 3 additions and 2 deletions
|
|
@ -92,7 +92,7 @@
|
|||
|
||||
(extend-protocol KvRfable
|
||||
#?(:clj Object :cljs default) (some-kvrf [_] nil)
|
||||
nil (some-kvrf [_] nil))
|
||||
#?@(:clj [nil (some-kvrf [_] nil)]))
|
||||
|
||||
(defn ensure-kvrf [rf]
|
||||
(or (some-kvrf rf)
|
||||
|
|
@ -126,7 +126,8 @@
|
|||
|
||||
(defn- into-rf [to]
|
||||
(cond
|
||||
(instance? #?(:clj clojure.lang.IEditableCollection :cljs IEditableCollection) to)
|
||||
#?(:clj (instance? clojure.lang.IEditableCollection to)
|
||||
:cljs (satisfies? IEditableCollection to))
|
||||
(if (map? to)
|
||||
(kvrf
|
||||
([] (transient to))
|
||||
|
|
|
|||
Loading…
Reference in a new issue