FYI a colleague and I tried Cythonizing parts of django.template in 2015, we shared our findings on this list: https://groups.google.com/forum/#!topic/django-developers/CKcZwC3J1eQ . We didn't build it in Django core or a fork, our package replaced parts of Django as they imported using an import hook.
TLDR is that it worked and we could measure the improvement locally whilst benchmarking a single function, but it didn't move the needle measurably in production, though we expected it would. On 22 May 2017 at 04:47, Curtis Maloney <[email protected]> wrote: > On 22/05/17 09:30, Tom Forbes wrote: > >> Hey Karl and Russell, >> Thank you for your quick replies! >> >> Russell: >> >> You are of course right about the speed of the Python code itself being >> a bottleneck and the usual suspects like the database are more important >> to optimize. However I don't think it's necessarily always a waste of >> time to explore optimizing some Python/django functions, if that only >> means simply moving them to a separate file and running Cython on them >> to get a speed boost. >> > > Of course, I'm sure Russel won't object to be shown to be wrong, if you > feel like giving it a go anyway :) > > -- > Curtis > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-developers. > To view this discussion on the web visit https://groups.google.com/d/ms > gid/django-developers/50d4b757-ca93-66b6-c518-7ab0793e7646%40tinbrain.net. > > For more options, visit https://groups.google.com/d/optout. > -- Adam -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM30vKEvfFi70VqyF2g309WgAx-fd%3DauyZV--sj1D87gFQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
