Move some debugging checks inside Py_DEBUG. They were causing cache misses according to cachegrind.
Attach a file by drag & drop or click to upload