On Jun 30, 2009, at 3:53 AM, fft1976 wrote:

>
> On Jun 30, 12:55 am, Daniel Lyons <fus...@storytotell.org> wrote:
>
>> I don't see why that wouldn't be the case, if you were using Java's
>> native multidimensional arrays. I don't think it would be as much  
>> fun,
>
> That's my point. It's often argued that you can just optimize the
> teeny "bottleneck" by adding type declarations or rewriting in Java,
> but in fact, replacing your Lisp data structures in much of your code
> base with Java data structures may be necessary to match Java's speed.

I don't recall hearing anyone on the list complain about this in  
practice and in the absence of a concrete example of a performance  
problem in actual code to be addressed I'm not sure what else there is  
to say. Usually performance problems *are* teeny bottlenecks and type  
declarations (or better algorithms) are usually sufficient  
improvement. I think if performance demands it be rewritten in Java  
there wouldn't be much to be gained from gutting your Clojure code of  
Clojure data structures, but then again, from what I know about  
Clojure's performance, if it's necessary to rewrite the whole app in  
Java for performance it's probably a better idea to rewrite in  
something else that doesn't run under a VM in the first place. The  
performance difference between Clojure and Java just isn't that great.

Do you have some poorly-performing code we can take a look at? Perhaps  
we can find a way to improve it without such drastic measures. :)

—
Daniel Lyons


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

Reply via email to