Guido van Rossum <gu...@python.org> added the comment: > This adds an overhead to every indexing.
I'm not doubting your results, but I'm curious how that happened. The extra code in PyObject_GetItem is right before the point where it would otherwise raise TypeError -- I presume you benchmark never reached that point. Could it be that the compiler ends up rearranging the code in a way that is less optimal for the instruction cache? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32226> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com