Help / Release / J 7.01 / ,&.>/"r Improved

From J Wiki
Jump to navigation Jump to search


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



,&.>/"r Improved

initial writing: 2008-04-08
last updated: 2010-03-31


The monad ,&.>/"r (also ,&.>/) has been made more efficient. The following benchmarks demonstrate the improvements.

ts=: 6!:2 , 7!:2@]  NB. time and space

x=: a {~ (10,n) ?@$ #a=: ;:'The Mississippi delta was shining like a national guitar'
10 ts ',&.>/"1 x'   or   10 ts ',&.>/x'
 n      J 7.01      J 6.02      Ratio
,&.>/"1 x
5000 0.002155  362048 0.319172  396416 148.14 1.09
10000  0.004406  722496 1.177139  789632 267.17 1.09
20000  0.008259 1443392 4.477442 1576064 542.12 1.09
,&.>/x
5000 0.007273  690688 0.009716 1454144  1.34 2.11
10000  0.006064 1388928 0.025526 2906432  4.21 2.09
20000  0.010838 2775296 0.064701 5812096  5.97 2.09



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