Help / Release / J 6.02 / m} and u} Improved
< Help
Jump to navigation
Jump to search
>> << Pri JfC LJ Phr Dic Voc !: Rel NuVoc wd Help Release
m}y Improved |
initial writing: 2007-02-04 |
The monads m}y and u}y have been made faster and leaner. The following benchmark demonstrate the improvement:
b=: 1e6 ?@$ 2 i=: 1e6 ?@$ 3 y=: '.' ,~ '_',:~ 1e6$'dazlious ' u=: ' '&=@{. ts=: 6!:2, 7!:2@] NB. time and space ts 'Expression'
Expression | J 6.02 | J 6.01 | Ratio | |||||||||
b}y | 0.0175358 | 1.04934e6 | 0.0320888 | 9.43795e6 | 1.83 | 8.99 | ||||||
i}y | 0.0059477 | 1.04934e6 | 0.0278570 | 5.24365e6 | 4.68 | 5.00 | ||||||
u}y | 0.0163063 | 2.09798e6 | 0.0368750 | 1.04866e7 | 2.26 | 5.00 |