Help / Release / J 6.02 / Rank-0 Monads Improved
< Help
Jump to navigation
Jump to search
>> << Pri JfC LJ Phr Dic Voc !: Rel NuVoc wd Help Release
Rank-0 Monads Improved |
initial writing: 2007-01-03 |
Certain rank-0 monads that compute identity functions have been improved:
B - boolean | + | <. | >. | * | %: | | | |||||||
I - integer | + | <. | >. | ||||||||||
X - extended integer | + | <. | >. | ||||||||||
Q - rational | + | ||||||||||||
D - floating point | + |
The following benchmarks demonstrate the improvements:
i=: 1e6 ?@$ 2e5 b=: 1e6 ?@$ 2 ts=: 6!:2 , 7!:2@] NB. time and space ts 'Expression'
Expression | J 6.02 | J 6.01 | Ratio | |||||||||
>.b | 0.0000023 | 640 | 0.0014118 | 1049216 | 608.94 | 1639.40 | ||||||
>.i | 0.0000019 | 576 | 0.0056984 | 4194880 | 2985.14 | 7282.78 | ||||||
+ i | 0.0000019 | 512 | 0.0054586 | 4194816 | 2837.27 | 8193.00 |