Message217834
Every branch has a cost (in particular, it tends to contaminate global branch prediction tables and blow other code out of the L1 code cache). The cost isn't big, but branches shouldn't be added unless we know there is a real benefit.
I would think that in real-world code, this branch will almost never be taken. The common case will pay a price (albiet a small one) for almost zero benefit. |
|
Date |
User |
Action |
Args |
2014-05-03 22:15:59 | rhettinger | set | recipients:
+ rhettinger, mark.dickinson, vstinner, serhiy.storchaka |
2014-05-03 22:15:59 | rhettinger | set | messageid: <1399155359.71.0.292905309603.issue21422@psf.upfronthosting.co.za> |
2014-05-03 22:15:59 | rhettinger | link | issue21422 messages |
2014-05-03 22:15:59 | rhettinger | create | |
|