kill jvm reflection
This commit is contained in:
parent
66ebd8c536
commit
f8d3ad5167
2 changed files with 5 additions and 5 deletions
|
|
@ -28,7 +28,7 @@
|
||||||
(pr-str o)
|
(pr-str o)
|
||||||
(str o)))
|
(str o)))
|
||||||
|
|
||||||
(defn smart-str [& elems]
|
(defn ^String smart-str [& elems]
|
||||||
(apply str (map smart-str* elems)))
|
(apply str (map smart-str* elems)))
|
||||||
|
|
||||||
(defn fast-constantly [v]
|
(defn fast-constantly [v]
|
||||||
|
|
|
||||||
|
|
@ -130,9 +130,9 @@
|
||||||
(recur (+ i 2) (+ j 2)))))))
|
(recur (+ i 2) (+ j 2)))))))
|
||||||
(let [none-count (i/get-cell none-cell)
|
(let [none-count (i/get-cell none-cell)
|
||||||
array (if (not= 0 none-count)
|
array (if (not= 0 none-count)
|
||||||
(java.util.Arrays/copyOf array (* 2 (- len none-count)))
|
(java.util.Arrays/copyOf array (int (* 2 (- len none-count))))
|
||||||
array
|
array
|
||||||
)]
|
)]
|
||||||
(clojure.lang.PersistentArrayMap/createAsIfByAssoc array)))))
|
(clojure.lang.PersistentArrayMap/createAsIfByAssoc array)))))
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -246,7 +246,7 @@
|
||||||
(recur (+ i 2) (+ j 2)))))))
|
(recur (+ i 2) (+ j 2)))))))
|
||||||
(let [none-count (i/get-cell none-cell)
|
(let [none-count (i/get-cell none-cell)
|
||||||
array (if (not= 0 none-count)
|
array (if (not= 0 none-count)
|
||||||
(java.util.Arrays/copyOf array (* 2 (- len none-count)))
|
(java.util.Arrays/copyOf array (int (* 2 (- len none-count))))
|
||||||
array
|
array
|
||||||
)]
|
)]
|
||||||
(clojure.lang.PersistentArrayMap. array)))))
|
(clojure.lang.PersistentArrayMap. array)))))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue