Re: performance issues with multi-dimensional array

2009-11-26 Thread Amnon
gt; 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 w

Re: performance issues with multi-dimensional array

2009-11-25 Thread Amnon
least 3 orders of magnitude faster so I'm sure there is something I'm doing wrong. I'll appreciate any suggestion. Thanks, Amnon I've squeezed my example into two functions: (defn light [arr x y] (+ (aget arr x y 0) (aget arr x y 1) (aget arr x y 2)) ) (defn gr

performance issues with multi-dimensional array

2009-11-24 Thread Amnon
ess than a second) For example, I am turning an array to gray scale. I tried to erase all my false improvements and squeeze everything to a single function: grey should get a 3Dim array (WxHx3 colors) and return it in a gray scale. Any help would be highly appreciated. Amnon -- You received th