Hi Alexandru,

On Thursday, December 10, 2015 at 12:52:46 PM UTC+1, Alexandru Damian wrote:
>
> I cProfile-instrumented *def get_response() *in *django/core/handlers/base.py 
>  
> *without (vanilla django) and with cemplate, posted the results here:
>
> https://github.com/ddalex/django-cemplate/tree/master/profile_data
>

The results are odd, looks as if you are running in a "test"-like 
environment. Please make sure you run them with DEBUG=False and without any 
test instrumentation to mimic a production environment.

Both profiles are with all caches primed. Please compare time spent in 
> django/template/base.py in vanilla (0.773 seconds) and cemplate (0.288) 
> seconds.
>

Yeah, that is roughly a 100% speedup in template rendering (does one say 
100% if twice as fast?!)
 

> Can you please advise on how to continue this work ? 
>> I feel that maintaining separate trees for each Django release is not 
>> scalable on my part.
>>
>  
>> It’s difficult to say without knowing what you’re proposing. Is there 
>> some change you’d like to see merged into Django? Some API hook that you’d 
>> like to add to make your life easier?
>>
>
I am not really convinced that replacing the whole file is a good idea. In 
my experience one gets better results when using Cython by strategically 
replacing single functions and rewriting those in C directly. A factor of 
two is all nice an well, but if this is still just 10% in the overall 
response there might be other (better) optimizations out there.

Cheers,
Florian

-- 
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 http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/83250b7f-58fb-46b1-83fe-79b792eb70df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to