But in this case:
20 (6!:2) ',@((,.>:)@*&3)^:(]`(1"_)) 18'
0.0604128
20 (6!:2) ',@((,.>:)@*&3)^:(]`1:) 18'
0.057749
???
Op 02-12-17 om 04:23 schreef Henry Rich:
I see what's happening. 1"_ produces a Boolean, while 1: produces an
integer. In this case the Boolean is better. I'm not sure whether it
always would be; what do you think?
Henry Rich
On 12/1/2017 9:12 AM, Raul Miller wrote:
Huh...
I can reproduce that 10x speed difference:
timespacex 'c0 17'
0.078233 2.01328e8
timespacex 'c01 17'
0.761976 1.61061e9
c0
,@((1 0 1 */ ])^:(]`(1"_)))
c01
,@((1 0 1 */ ])^:(]`1:))
This seems bizarre.
Thanks,
---
This email has been checked for viruses by AVG.
http://www.avg.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm