Pablo Galindo Salgado <pablog...@gmail.com> 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 <rep...@bugs.python.org>
<https://bugs.python.org/issue42115>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to