STINNER Victor added the comment: The PR makes different changes:
* replace lookup_method() with lookup_maybe_method() * specialize call_xxx() functions for a fixed number of parameters * rename lookup_maybe() to _PyObject_LookupSpecial() If possible, I would prefer to not have to duplicate functions for 0, 1 and 2 parameters (3 variants). I would like to know which changes are responsible for the speedup. To ease the review, would it be possible to split your change into smaller changes? At least, separated commits, maybe even a first "cleanup" PR before the "optimization" PR. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30509> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com