Hi again, I have tried a few more things: I have done the same in Java but using an array of Integers, instead of an array of ints. It just takes 78 ms. (more than 16, still far less than 4 secs). I have also tried with an update function which just returns a fixed 1. It still takes some 400 ms. to update de data vector of the CA. This is similar to the time it is giving me to create a vector of 1's with this function: (time (vec (repeat 250000 1))). I was not expecting Clojure vectors so much slower than Java arrays. Is that comparison so "unfair"? Next thing I am trying is using Java Vectors in my Java implementation... Rubén Rubén Béjar escribió: Hi all, -- Rubén BÉJAR HERNÁNDEZ Dpto. de Informática e Ingeniería de Sistemas - Universidad de Zaragoza (Computing and Systems Engineering Department - Universidad de Zaragoza) c/ María de Luna 1, 50018 Zaragoza, Spain Tel: (+34) 976 76 2332 (Fax: 1914) e-mail: rbe...@unizar.es Grupo IA3 (IA3 Laboratory) - http://iaaa.cps.unizar.es-- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en |
- Newbie question about vector performance Rubén Béjar
- Re: Newbie question about vector performance Rubén Béjar
- Re: Newbie question about vector performance Luke VanderHart
- Re: Newbie question about vector performance David Nolen
- Re: Newbie question about vector performance Michael Gardner
- Re: Newbie question about vector performance Rubén Béjar
- Re: Newbie question about vector performance David Nolen
- Re: Newbie question about vector performance David Nolen
- Re: Newbie question about vector performance igorrumiha
- Re: Newbie question about vector performance Laurent PETIT