2 ms·
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
by dom0 9y ago
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.