Dan Bron wrote:

> Extended ints, like boxes, are "reference types"*.  Amending an array of 
> reference types takes time proportional to the size of the
> entire array; this is in contrast to amending an array of value types, which 
> takes time proportional to the size of the index array
> (i.e. the number of values amended).
> 
> Well, at least that's how it used to be [1].  The story might've changed 
> since then.
> 
> -Dan
> 
> [1]  http://www.jsoftware.com/pipermail/general/2001-December/008453.html


Amending an array of extended integer take a time proportional to the 
size of the array.
:-( :-(


I did the following test that plot integer and extended integer time

require 'plot'
exttest =: monad define"0
     name =. y # _1x
     6!:2 'name =. _40x (<?y) } name'
)
numtest =: monad define"0
     name =. y # _1
     6!:2 'name =. _40 (<?y) } name'
)
sample =. 100
size =. 1e4
plot n ; ( numtest ,:~ exttest ) [ n =. size * >:i.sample



MfG

Luca.

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to