We know optimizes unfold loops as well as arrays. it doesnt take a profound leap in logic that the optimizer may have unfolded everything and realized certain code was not going to change the state of the program, thus removed it. Maybe it didnt, but then again maybe it did.
It's information, but not worthwhile information.
> It doesnt take a profound leap in logic that the optimizer may have unfolded everything and realized certain code was not going to change the state of the program, thus removed it. Maybe it didnt, but then again maybe it did.
Prove it. This article has had a ton of traffic. If you see the thing that everyone missed, a lot of people will be very impressed with you.
Well, that... and even simple Python VM instructions tend to take dozens of insns to execute.
I imagine the 6x factor probably is because the optimizer unfolds the array/loop structure.
edit: sorting the array increases the time by about 4x if you include the sort time, so its not worth it