Hi,

while doing some profiling, I was recently surprised that

+/ a

was slower than

 (+/ % #) a.

I expected to find the opposite.

--Steven



   a =: ? 100000000 $ 100

   6!:2 'b=.+/ a'
0.240794
   6!:2 'b % #a'
4.92455e_6

   NB. vs
   6!:2 '(+/ % #) a'
0.13628
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to