Message274105
| Author |
vstinner |
| Recipients |
barry, eli.bendersky, ethan.furman, ezio.melotti, martin.panter, python-dev, r.david.murray, rhettinger, serhiy.storchaka, veky, vstinner |
| Date |
2016年09月01日.09:04:03 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1472720643.37.0.144755923831.issue23591@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
As noticed by veky on the review, _high_bit() is slow and can be optimized using int.bit_length(). Attached bit_length.patch implements this.
_high_bit(0) returns -1. Maybe an exception must be raised if the argument is < 1? (also fail for negative number) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年09月01日 09:04:03 | vstinner | set | recipients:
+ vstinner, barry, rhettinger, ezio.melotti, r.david.murray, eli.bendersky, ethan.furman, python-dev, martin.panter, serhiy.storchaka, veky |
| 2016年09月01日 09:04:03 | vstinner | set | messageid: <1472720643.37.0.144755923831.issue23591@psf.upfronthosting.co.za> |
| 2016年09月01日 09:04:03 | vstinner | link | issue23591 messages |
| 2016年09月01日 09:04:03 | vstinner | create |
|