Re:Why is it faster to process a sorted array than an unsort...
by dom0 on Friday September 15, 2017 @11:07AM
(#15257737)
Python if statements will branch on very few processor instructions in the VM; so I don't think branch prediction of the processor is able to predict different Python if's — they're all the same to it.
Well, that... and even simple Python VM instructions tend to take dozens of insns to execute.
Well, that... and even simple Python VM instructions tend to take dozens of insns to execute.