Help / Release / J 6.02 / u/. Improved

From J Wiki
Jump to navigation Jump to search


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



u/.

Improved

initial writing: 2007-06-15
last updated: 2007-06-15


The monad u/. (Oblique) has been made faster and leaner for the general case. Specific cases of u/. supported by special code remain unchanged. The following benchmarks demonstrate the improvement:

y=: 200 5000 ?@$ 0

ts=: 6!:2 , 7!:2@]  NB. time and space
ts 'Expression'
Expression      J 6.02    J 6.01    Ratio
</.y 0.083978 3.24223e7 1.368435 1.58000e8 16.30 4.87
]/.y  0.096348 3.04436e7 1.401710 1.58000e8 14.55 5.19



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