[issue33930] Segfault with deep recursion into object().__dir__

Serhiy Storchaka report at bugs.python.org
Wed Nov 28 03:27:46 EST 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

It is hard to get a noticeable difference in macrobenchmarks. I want to see results of microbenchmarks.

For tuples, the trashcan mechanism is the main culprit of the performance hit when use short-living tuples for passing arguments. For bound method objects the relative effect should be smaller, because looking up the method is more costly than building a tuple, and less bound method objects are created after implementing the method call optimization. But in any case we should know the maximal cost of this change before merging it.

----------

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


More information about the Python-bugs-list mailing list