Dennis Sweeney <sweeney.dennis...@gmail.com> added the comment:
This attempts to avoid the dispatch dance of Py_DECREF(op) :: Py_TYPE(op)->tp_dealloc(op) :: Py_TYPE(op)->tp_free((PyObject *)op); I suspect this earns the most speedup from floats, where freelist manipulation can be inlined. This might make a single-digit-int freelist more impactful. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46509> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com