I don't think his machine is that slow - it's more the overhead of the extended integer, i.e. on the faster of my two machines at work:
time 'Mem =: 4 (<1 2 3) } Mem' 1.841231 Mem=: ( C, W, H) $ _1 time 'Mem =: 4 (<1 2 3) } Mem' 2.2468948e_5 On Mon, Dec 14, 2009 at 4:02 PM, Raul Miller <[email protected]> wrote: > On Mon, Dec 14, 2009 at 3:26 PM, miridian <[email protected]> wrote: > > time =: 6!:2 > > W =: 9 > > H =: 12 > > C =: 2 ^ 2 * W > > Mem =: ( C, W , H ) $ _1x > > > > The amend take more than 4 seconds. > > > > time 'Mem =: 4 ( < 1, 2, 3 ) } Mem' > > 4.136996 > > > > Is there a way to improve the amend time? > > Use a faster computer? > ... > I am not sure if the issue is cpu speed or amount > of memory available, but your computer seems > slow, to me. > > -- > Raul > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
