Performance Problem with Clojure Array

Posted by dbyrne on Stack Overflow See other posts from Stack Overflow or by dbyrne
Published on 2010-06-13T22:24:33Z Indexed on 2010/06/13 22:32 UTC
Read the original article Hit count: 248

Filed under:
|
|

This piece of code is very slow. Execution from the slime-repl on my netbook takes a couple minutes. Am I doing something wrong?

(def test-array (make-array Integer/TYPE 400 400 3))

(doseq [x (range 400), y (range 400), z (range 3)]
   (aset test-array x y z 0))

© Stack Overflow or respective owner

Related posts about Performance

Related posts about arrays