Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

Currently a reduce on (e.g.) long-array never ends up in the fast {{ArraySeq_Long.reduce}} function. Only if the user calls {{seq}} on it beforehand.


;; Fast: (reduce (fn [_ _]) 0 (seq (long-array [1]))) ;; >2x slower: (reduce (fn [_ _]) 0 (long-array [1]))

1 Answer

0 votes
Reference: https://clojure.atlassian.net/browse/CLJ-2281 (reported by aralo)