Dennis Sweeney <sweeney.dennis...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue39737> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com