Re: aset-* family of functions

2009-07-04 Thread Nicolas Oury
Thanks for the reply. It seems to speed up quite a bit the array of double. I cannot manage to make it work for the array of booleans. Is there someting different? If aset and aget are faster, what is the goal of the aset-xxx? Best, Nicolas. --~--~-~--~~~---~--~~

Re: aset-* family of functions

2009-07-04 Thread Rich Hickey
On Sat, Jul 4, 2009 at 5:00 AM, Nicolas Oury wrote: > Dear all, > > In another thread, we realized that setting an array of primitive type (it > was double in our example) is far quicker in > Java than in Clojure. > > After looking to the implementation of aset-* in Clojure 1.0, I realize that > i

aset-* family of functions

2009-07-04 Thread Nicolas Oury
Dear all, In another thread, we realized that setting an array of primitive type (it was double in our example) is far quicker in Java than in Clojure. After looking to the implementation of aset-* in Clojure 1.0, I realize that it calls the set* method of java.reflect.Array. Is there a way of av