Using Cython with Django. Does it make sense?

前端 未结 6 1654
滥情空心
滥情空心 2020-12-24 05:58

Is it possible to optimize speed of a mission critical application developed in Django with Cython?

Recently I have read on the internet, that Cython can turn a Pyth

6条回答
  •  孤城傲影
    2020-12-24 06:19

    We have built an application that is installed on the customer site called InProd, it manages the configuration of Genesys powered contact centers. It is a Django application compiled with Cython.

    There is a speed improvement but it is not considerable. We need to process a lot of requests per second and the main delay in doing this is caused by the database. The biggest gains are to be made with database tuning and good sql.

    You need to have a really strong need to do such a thing as it does cause on going issues, it increases our testing requirements.

    The performance difference can be large on some tasks, but not all. So the improvement will depend on what your application is doing.

提交回复
热议问题