5 ms·
It holds just as true, but I can't think of a case where it would be worth worrying about. For example, accesses to main memory are much more expensive than mi
by nkurz 16y ago
It holds just as true, but I can't think of a case where it would be worth worrying about. For example, accesses to main memory are much more expensive than mispredicted branches.
Unless you're also concerned with how Python or Ruby stores its values internally, you don't need to think about the speed of conditionals. It's really only an issue if you're writing the Python or Ruby interpreter itself.