Improved cython profiler performance.