I understand the cost of branch misprediction and importance of avoiding if statement. But memory access is also expensive, isn't it?
Is there a way to compare which is more expensive? time.time() or if local_variable? This local_variable is ready for if statement. Thanks a lot.
Aucun commentaire:
Enregistrer un commentaire