Pablo Galindo Salgado <[email protected]> added the comment:
I am attaching to this issue a patch with PR 23503 restricted to only classes
without dict. I can measure a speedup but is super small (5%) in a function
that keeps calling a method for a builtin:
def foo(obj):
for _ in range(10000):
res = obj.index(42)
return res
----------
Added file: https://bugs.python.org/file49776/patch
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42115>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com