It's been on my TODO list for some time to deep dive into DTL and find
where I can to remove excess work.

There's a LOT of defensive coding in there to ensure things are what we
expect, and to handle cases "just in case", and I've a gut feeling [nothing
more] that we can remove some of these safety catches.

However, to do this I would first require a credible template benchmark
suite.

It's been my experience that it's actually quite rare for the slowdowns to
be unavoidably DTLs fault... often a tiny more work in the view to put data
into better structures can affect drastic speedups.

So, in closing... if you're interested in helping me help you... let's talk.

--
Curtis


On 18 November 2014 13:39, Michael Manfre <mman...@gmail.com> wrote:

> Thanks to the work Aymeric recently started, Django will have more options
> with regards to templating. See his DEP on Multiple Template Engines.
> https://myks.org/en/multiple-template-engines-for-django/dep/
>
> Regarding changing the Django Template Language syntax for the sake of
> performance improvements, backwards incompatible changes are not likely to
> happen. There is a huge cost involved with forcing everyone to update their
> templates. Ideas on improvements that are backwards compatible would be
> welcomed by many!
>
> Regards,
> Michael Manfre
>
>
> On Mon, Nov 17, 2014 at 9:17 PM, <cristianocc...@gmail.com> wrote:
>
>>  Hello,
>>
>> Mostly a question, but are there any work in progress to improve
>> templates render performance? Times when having medium to big data and/or
>> loops get excesively high, compared to jinja2 which sadly is not as easy to
>> use as django native template language. I would really trade a feature or
>> two in order to achieve better performance. For example, accessing
>> variables from a dict, or even calling functions, all with the same syntax,
>> I believe there's a huge overhead in there, and trading a xx.call for
>> xx.call() is not such a big deal.
>>
>> What about a high performance option inside a template which trades
>> flexibility for performance.
>>
>>   --
>> 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 django-developers+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-developers@googlegroups.com.
>> 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/546aacd0.caa7340a.6c15.29a8%40mx.google.com
>> <https://groups.google.com/d/msgid/django-developers/546aacd0.caa7340a.6c15.29a8%40mx.google.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> 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 django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> 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/CAGdCwBtLaij4G%2BF63qG8jVpaPHyp3oFLKD%2B9Axx3nxjrUvs%3DDg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-developers/CAGdCwBtLaij4G%2BF63qG8jVpaPHyp3oFLKD%2B9Axx3nxjrUvs%3DDg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
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/CAG_XiSCXQiOg%2BSK8ZZF78SSXWbibppaVmTemqWE6NOSDWm%2BY7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to