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?

    time 'Mem =: 4 ( < 1, 2, 3 ) } Mem'
0.027299
    time 'Mem =: 4 ( < 1, 2, 3 ) } Mem'
4.69333e_5
    time 'Mem =: 4 ( < 1, 2, 3 ) } Mem'
4.60952e_5
    time 'Mem =: 4 ( < 1, 2, 3 ) } Mem'
5.28e_5
Mem =: ( C, W , H ) $ _1
    time 'Mem =: 4 ( < 1, 2, 3 ) } Mem'
4.94476e_5
    time 'Mem =: 5 ( < 1, 2, 3 ) } Mem'
4.9727e_5

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

Reply via email to