Author ethan.furman
Recipients barry, ethan.furman, gvanrossum, methane, rhettinger, serhiy.storchaka, vstinner
Date 2017-10-05.04:44:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507178681.86.0.213398074469.issue31671@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-10-05 04:44:41ethan.furmansetrecipients: + ethan.furman, gvanrossum, barry, rhettinger, vstinner, methane, serhiy.storchaka
2017-10-05 04:44:41ethan.furmansetmessageid: <1507178681.86.0.213398074469.issue31671@psf.upfronthosting.co.za>
2017-10-05 04:44:41ethan.furmanlinkissue31671 messages
2017-10-05 04:44:41ethan.furmancreate