cython is slower than raw cpython when testing fibs recursive function

前端 未结 0 752
陌清茗
陌清茗 2020-12-11 10:03

I tested fibs function using cython, but it runs much slower than raw cpython, the code is in below:

pyx:

cdef int _fib(int n):
    if n == 1 or n ==          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题