#31582: Django template backend allocates model cache even iterator() is used
---------------------------------+--------------------------------------
     Reporter:  Sümer Cip        |                    Owner:  nobody
         Type:  Bug              |                   Status:  closed
    Component:  Template system  |                  Version:  3.0
     Severity:  Normal           |               Resolution:  needsinfo
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------

Comment (by Keryn Knight):

 If you can observe a difference between DTL & Jinja2, I'm inclined to
 think it's due to the `defaulttags.ForNode` implementation, and a
 ''potential'' candidate for the 'leak' would be:
 {{{
 if not hasattr(values, "__len__"):
     values = list(values)
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31582#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.4281eba7a5ba01a6c9255448ab4a8130%40djangoproject.com.

Reply via email to