[issue41347] collections.deque.count performance enhancement

Dong-hee Na report at bugs.python.org
Mon Jul 20 21:59:51 EDT 2020


Dong-hee Na <donghee.na92 at gmail.com> added the comment:

> I would rather not do this.

I would not like to say this change should be applied ;)
I found this point during I converting deque methods by using 
Argument Clinic(I will ping you later ;)


https://bugs.python.org/issue39425 was applied since PyObject_RichCompareBool requires reference counting and it caused performance regression. 

Know I remember, why we applied this micro-optimization.

So my conclusion is that don't apply this change.
We don't have to apply this change since PyObject_RichCompareBool does not cause a performance regression.

Thank you for your comment, Raymond.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41347>
_______________________________________


More information about the Python-bugs-list mailing list