Speedup by eliminating unnecessary funcall