> From: bill lam > > On my J linux64, time and space differs slightly > 30 ts 'mm&# &.>tst' > 0.053827133 14669952 > 30 ts 'mm #L:0 tst' > 0.0561688 14670080 > 30 ts '<"1 mm#"1>tst' > 0.048732467 16767872 > > As Roger? noted improvement factor of less than 2 is not worth > considering. > For comparison without boxing > > tst1=: >tst > $tst1 > 100000 10 > 30 ts 'mm#"1 tst1' > 0.0108082 1050496
I think we agree on the following...? If you can get away without storing the array as boxed, then operations on it will be quicker and use less space. There isn't really much difference in the way of performance between the various methods proposed so far. <"1 mm#"1>tst is a little more space hungry, but may perhaps be slightly faster than the other methods in some situations. So if you decide to use a boxed structure, choose the method that you like the look of most! ;-) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
