Help / Release / J 4.06 / # Improved

From J Wiki
Jump to navigation Jump to search


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



# Improved

initial writing: 2000-11-29
last updated: 2000-11-29


The dyad # with a boolean left argument has been speeded up. The comparisons below are the times required to execute b#x for literal matrix x with 1 million rows and c columns, and b with different densities.

c   J 4.06   J 4.05
                               

b=: ?1e6$2

10.0282460.0397111.41
20.0361080.0441631.22
30.0696060.0950451.37
40.0468780.0567851.21
50.0835060.1073241.29
60.0877890.1118111.27
70.0977060.1201331.23
80.0698330.0807811.16
90.1108020.1339681.21
100.1146200.1359941.19
110.1237120.1456681.18
120.1217120.1426091.17
                               

b=: 0=?1e6$2

10.0216450.0288851.33
20.0253710.0322841.27
30.0383180.0450741.18
40.0278870.0355321.27
50.0419300.0489971.17
60.0427520.0496731.16
70.0443200.0514311.16
80.0335700.0426771.27
90.0467670.0542151.16
100.0474970.0543661.14
110.0495100.0564281.14
120.0474600.0545671.15
                               

b=: 0<?1e6$2

10.0255700.0341241.33
20.0339940.0399731.18
30.0657950.1188231.81
40.0527910.0579591.10
50.0865070.1378511.59
60.0916240.1453611.59
70.1043580.1534161.47
80.0865390.0975861.13
90.1296910.1753731.35
100.1339200.1776481.33
110.1469870.1912671.30
120.1544530.1915111.24
                               



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