Help / Release / J 6.01 / C. Improved

From J Wiki
Jump to navigation Jump to search


>> << Pri JfC LJ Phr Dic Voc !: Rel NuVoc wd Help Release



C.

Improved

initial writing: 2005-08-03
last updated: 2006-02-03


The monad C. has been made faster and leaner on permutations. The following benchmarks demonstrate the improvement:

ts=: 6!:2 , 7!:2@]
ts 'C. p'
p      J 6.01    J 5.04    Ratio
i.1e5  0.018944 8.51405e6 0.140333 2.52791e7 7.41 2.97
1|.i.1e5  0.001763 1.18042e6 0.005023 3.27802e6 2.85 2.78
,_2|.\i.1e5 0.009762 4.58496e6 0.069964 1.37540e7 7.17 3.00
?.~1e5  0.003373 1.31328e6 0.006778 3.54438e6 2.01 2.70
 
i.1e6  0.188565 8.17280e7 1.436150 2.43086e8 7.62 2.97
1|.i.1e6  0.018803 9.43795e6 0.061876 2.62156e7 3.29 2.78
,_2|.\i.1e6 0.098243 4.34857e7 0.725526 1.30456e8 7.39 3.00
?.~1e6  0.129042 1.26066e7 0.164839 3.25539e7 1.28 2.58




>> << Pri JfC LJ Phr Dic Voc !: Rel NuVoc wd Help Release