[issue30509] Optimize calling type slots

Serhiy Storchaka report at bugs.python.org
Wed Jun 14 01:21:34 EDT 2017


Serhiy Storchaka added the comment:

Without Py_LOCAL_INLINE all mickrobenchmarks become about 20% slower.

I'm not sure that all these changes are needed. Maybe the same effect can be achieved by smaller changes. But I tried and failed to achieve the same performance with a smaller patch yet. Maybe you will be more lucky.

Note that even with this patch type slots still about 5% slower than ordinal methods (despite the fact that using operators needs less bytecode instructions than calling a method). There is some additional overhead.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30509>
_______________________________________


More information about the Python-bugs-list mailing list