Elegant but very slow

2008-12-04 Thread PeterB
Hi, I downloaded clojure_20080916.zip and had a go with a simple tree benchmark (cut-down version of the one in the computer language shootout http://shootout.alioth.debian.org/). The Java version is pretty simple and runs in about 2s on my laptop: public class Main { public static void ma

Re: Elegant but very slow

2008-12-06 Thread PeterB
Thanks for all the suggestions! This modified version is very close to that in the thread: http://groups.google.com/group/clojure/browse_thread/thread/f0303a9e00b38529/99f02fef21721a2f?lnk=gst&q=alioth+tree#99f02fef21721a2f (Thanks for pointing that out Meikel. I should have searched old threads