Clojure 1.2.1 here. 4e6 takes about 10 seconds, the process uses ~500Mb of RAM. `lein repl` is fine with that. Python takes 5, but that's acceptable difference, I think, considering we're talking immutable vs mutable here.
If you still have the old code, I'd like to take a look. On Jul 25, 10:54 am, Oskar <oskar.kv...@gmail.com> wrote: > On Jul 23, 4:06 pm, Dmitry Gutov <raa...@gmail.com> wrote: > > > Ahem. > > > Here is a more idiomatic version that runs under half a second, no > > annotations required. > > I did that from the beginning, but as I really needed 4e6 and not 1e5 > elements, that map got very big. And I didn't remember the argument to > give java more memory. Also I was just curious to see what arrays did > to the performance. However, my code that looked like that was slow > too. I used Clojure 1.2.0. Are you using 1.3.0? -- 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