If control flow 40X slow down

Further problems:

  1. progress is not returned, so test2(m::Array{Int8, 2}) = nothing is an equivalent function (if the @printf is removed).

  2. The optimizer knows math so it can just figure out what the end result of progress from the loop ranges.

3 Likes