Message303740
INADA Naoki said:
> But while new instance is not created each time, 4 Python method
> calls (e,g. IntFlag.__and__() -> IntFlag.__new__()
> -> IntFlag._missing_() -> IntFlag._create_pseudo_member_())
> are much slower than int & int.
Only the first two calls always happen -- the last two calls only happen for numbers that haven't been seen yet. And yes, two Python level calls are much slower than an int & int. |
|
Date |
User |
Action |
Args |
2017-10-05 04:44:41 | ethan.furman | set | recipients:
+ ethan.furman, gvanrossum, barry, rhettinger, vstinner, methane, serhiy.storchaka |
2017-10-05 04:44:41 | ethan.furman | set | messageid: <1507178681.86.0.213398074469.issue31671@psf.upfronthosting.co.za> |
2017-10-05 04:44:41 | ethan.furman | link | issue31671 messages |
2017-10-05 04:44:41 | ethan.furman | create | |
|