Django and Cython

2018-08-01 Thread Daniel Anechitoaie
I'm looking at frameworks like https://vibora.io/ that make use of Cython to greatly improve the performance and I'm just wondering if something like this would work with Django? Was there any discussion (taken into consideration) about using Cython to boost the performance of certain aspects of

Re: Django and Cython

2018-08-02 Thread Jason Johns
There was a discussion a while back about this https://groups.google.com/forum/#!searchin/django-developers/cython/django-developers/Fi4U602GxHA/mE50LOPkBgAJ tl;dr not sure what benefits Django would get from it, since the bottlenecks you experience are most likely non-Django/Python parts of you

Re: Django and Cython

2018-08-03 Thread Daniel Anechitoaie
So the fact that frameworks like Vibora and webapps developed in other faster programming languages like GO/NodeJS/etc. support so many more req/s than Django it's relevant only in benchmarks? And in real life/live web apps the difference in performance won't be noticeable? I have to mention ag

Re: Django and Cython

2018-08-03 Thread Jason Johns
Not at all, just that Cython itself is probably not the approach to take. Andrew Godwin recently posted a proposal for a Django ASGI roadmap and there's a good amount of work to be done there. Benchmarks have their place.

Re: Django and Cython

2018-08-03 Thread Tom Forbes
The people showing you benchmarks comparing Django to ‘NodeJS’ are comparing apples to oranges. Django is not an asynchronous framework (yet!) so you cannot fairly compare the number of raw requests per second the two handle and present that as evidence one is better than the other. Each one has it

Re: Django and Cython

2018-08-03 Thread Curtis Maloney
On 08/02/2018 07:02 AM, Daniel Anechitoaie wrote: I'm looking at frameworks like https://vibora.io/ that make use of Cython to greatly improve the performance and I'm just wondering if something like this would work with Django? Was there any discussion (taken into consideration) about using Cyt