Does effective Cython cProfiling imply writing many sub functions?

后端 未结 2 1170
礼貌的吻别
礼貌的吻别 2021-01-27 18:10

I am trying to optimize some code with Cython, but cProfile is not providing enough information.

To do a good job at profiling, should I create many su

2条回答
  •  梦如初夏
    2021-01-27 18:36

    You need to enable profiling support for your Cython code. Use

    # cython: profile=True
    

    http://docs.cython.org/src/tutorial/profiling_tutorial.html

提交回复
热议问题