[Python-Dev] speeding up PyObject_GetItem

Mark Dickinson dickinsm at gmail.com
Tue Mar 24 16:13:53 CET 2009


2009/3/24 Daniel Stutzbach <daniel at stutzbachenterprises.com>:
> [...]
> 100 nanoseconds, py3k trunk:
> ceval -> PyObject_GetItem (object.c) -> list_subscript (listobject.c) ->
> PyNumber_AsSsize_t (object.c) -> PyLong_AsSsize_t (longobject.c)
> [more timings snipped]

Does removing the PyLong_Check call in PyLong_AsSsize_t
make any noticeable difference to these timings?

Mark


More information about the Python-Dev mailing list