Reduce some overhead in tracing code by avoiding to look up the thread state repeatedly.
Reduce some overhead in tracing code by avoiding to look up the thread state repeatedly.

da-woods/cython,scoder/cython,cython/cython,cython/cython,da-woods/cython,scoder/cython,scoder/cython,cython/cython,scoder/cython,cython/cython,da-woods/cython,da-woods/cython