[issue39737] Speed up list.__eq__ by about 6%
Dennis Sweeney
report at bugs.python.org
Tue Feb 25 21:50:23 EST 2020
Dennis Sweeney <sweeney.dennis650 at gmail.com> added the comment:
> Hmm, Is this build on release mode?
Yes--in debug mode, each Py_INCREF is these 8 instructions:
========================
78BD071E mov ecx,dword ptr [_Py_RefTotal (79039700h)]
78BD0724 add ecx,1
78BD0727 mov dword ptr [_Py_RefTotal (79039700h)],ecx
78BD072D mov edx,dword ptr [ebp-10h]
78BD0730 mov eax,dword ptr [edx]
78BD0732 add eax,1
78BD0735 mov ecx,dword ptr [ebp-10h]
78BD0738 mov dword ptr [ecx],eax
========================
instead of just the one `inc` in release mode.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39737>
_______________________________________
More information about the Python-bugs-list
mailing list