[Python-Dev] speeding up PyObject_GetItem
Antoine Pitrou
solipsis at pitrou.net
Tue Mar 24 10:39:19 CET 2009
Hrvoje Niksic <hrvoje.niksic <at> avl.com> writes:
>
> Agreed, and more importantly, I have yet to be convinced that those NULL
> checks introduce a measurable slowdown. Daniel, have you tried
> measuring the performance difference with only the NULL checks removed?
I think it would be fine to add a special case for lists (*) and dicts in
PyObject_GetItem(), provided it does make a significant difference in
performance for these two types.
(*) only for integers, not for slices
Regards
Antoine.
More information about the Python-Dev
mailing list