Even with the cached template loader? Before realising it was unnecessary one of the first things I did was hack something together that took the nodelist from the include and stuck it straight into the for loop's nodelist at compile time and it didn't make much difference.
Sam On Fri, 13 Mar 2015 at 21:40 Aymeric Augustin < [email protected]> wrote: > 2015-03-13 12:21 GMT+01:00 Sam Cooke <[email protected]>: > >> The test template we were using to test the performance was a simple: >> {% for item in item_list %}{% include "item.html" %}{% endfor %} >> > > Bad luck -- including a template in a loop is one of the known pathological > performance cases of the DTL :-( > > -- > Aymeric. > > -- > 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/CANE-7mXhB%2BgUNt_vZpvmMwBFfu1wYDBHaMWh1kx-HKg1%3DFcUGA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-developers/CANE-7mXhB%2BgUNt_vZpvmMwBFfu1wYDBHaMWh1kx-HKg1%3DFcUGA%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 [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/CAMyx3A21SKQYCCr2Zbs_e9MwkyShGtN2TCOpiARKUcjS4Q%3DijQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
