On Apr 1, 9:40 pm, Dmitri <dmitri.sotni...@gmail.com> wrote:
> I've been playing around with rendering a mandelbrot set, and using
> pure java it renders about 2 seconds on my machine, however it runs
> about 10 times as slow in clojure, I was curious if I'm doing anything
> obviously wrong, or if it's just life :) I do run it with the -server
> flag, which does improve it a bit. I've got the java and clojure
> source below:

Are you running the Clojure source as a script on the command line?
Some of the delay may be Clojure starting up and parsing the script.

You should also try using primitive types in the loops.  See this
thread for details:
http://groups.google.com/group/clojure/browse_thread/thread/61f236e830d98cb3/9637bba3451a30bd

-Stuart Sierra
--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to