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. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com