Re: performance issues with multi-dimensional array

2009-11-27 Thread Christophe Grand
On Thu, Nov 26, 2009 at 11:49 AM, Amnon wrote: > I did, and it works like a charm. Couldn't figure out how to hint an > array of objects (what should I put instead of the old #^objects? > I still get it to work in 300 ms (which is not great but something I > can live with). > You have to replace

Re: performance issues with multi-dimensional array

2009-11-26 Thread David Nolen
Check out this thread: http://groups.google.com/group/clojure/browse_frm/thread/4c52d4c3c19201b6/dd80d5e5bde4dc61 On Thu, Nov 26, 2009 at 4:49 AM, Amnon wrote: > I did, and it works like a charm. Couldn't figure out how to hint an > array of objects (what should I put instead of the old #^object

Re: performance issues with multi-dimensional array

2009-11-26 Thread Amnon
I did, and it works like a charm. Couldn't figure out how to hint an array of objects (what should I put instead of the old #^objects? I still get it to work in 300 ms (which is not great but something I can live with). Thanks for the replies, On Nov 25, 8:01 pm, David Nolen wrote: > Read Christo

Re: performance issues with multi-dimensional array

2009-11-25 Thread David Nolen
Read Christophe's post about multi-dim arrays. Reflection is getting in the way here. On Wed, Nov 25, 2009 at 2:55 AM, Amnon wrote: > Hi Konrad, > In the original post, I put in the code, it was removed by the post > editor. > The way I wanted it implement, I have the main in java (gui and > stu

Re: performance issues with multi-dimensional array

2009-11-25 Thread Amnon
Hi Konrad, In the original post, I put in the code, it was removed by the post editor. The way I wanted it implement, I have the main in java (gui and stuff). I create a 3D array in java, it's an int array (i.e. int arr[] [][] ) and call with that array to clojure. It can be done in java at least

Re: performance issues with multi-dimensional array

2009-11-24 Thread Christophe Grand
On Tue, Nov 24, 2009 at 5:30 PM, Amnon wrote: > I hope it's not the billion time you get the question. > I wanted to use clojure for image processing. I have a 3 dimensional > array I'm passing to clojure from java. > I then loop on the array to manipulate it. > Even the simplest task takes about

Re: performance issues with multi-dimensional array

2009-11-24 Thread Konrad Hinsen
On 24 Nov 2009, at 17:30, Amnon wrote: > I hope it's not the billion time you get the question. > I wanted to use clojure for image processing. I have a 3 dimensional > array I'm passing to clojure from java. > I then loop on the array to manipulate it. > Even the simplest task takes about half a

performance issues with multi-dimensional array

2009-11-24 Thread Amnon
I hope it's not the billion time you get the question. I wanted to use clojure for image processing. I have a 3 dimensional array I'm passing to clojure from java. I then loop on the array to manipulate it. Even the simplest task takes about half a minutes (I expected it to be over in less than a s