f/ Improved (b) |
initial writing: 2006-05-26 last updated: 2006-05-26 |
f/y have been made faster on boolean y
with an odd number of columns and commutative
boolean functions f (= ~: +. *.).
The following benchmarks demonstate the improvement:
b=: 97 10007 ?@$ 2 c=: |: b timer=: 6!:2 timer 'Expression'
Expression | J 6.01 | J 5.04 | Ratio | |||
+./b | 0.00056599 | 0.00154346 | 2.73 | |||
+./c | 0.00066633 | 0.00166236 | 2.49 | |||
~:/b | 0.00045097 | 0.00152730 | 3.39 | |||
~:/c | 0.00060139 | 0.00164138 | 2.73 |