[issue39434] Remove unnecessary logic of float __floordiv__
STINNER Victor
report at bugs.python.org
Thu Jan 30 08:49:21 EST 2020
STINNER Victor <vstinner at python.org> added the comment:
Thanks, that's a nice optimization!
I'm surprised that creating a tuple of 2 items, get one item directly into the C structure, and destroy the tuple is so slow (360 ns => 185 ns: 175 ns less). With my FASTCALL optimization on function calls, I recall that avoiding the creation a tuple of N items made function calls around 20 ns faster. Not 175 ns.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39434>
_______________________________________
More information about the Python-bugs-list
mailing list