#36242: NodeList render overhead with huge templates
-------------------------------------+-------------------------------------
     Reporter:  Michal Čihař         |                    Owner:  (none)
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  Uncategorized        |                  Version:  5.1
     Severity:  Normal               |               Resolution:  wontfix
     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 Jacob Walls):

 I just ran your second benchmark, and for me the list was consistently
 faster even for the larger strings
 {{{
 % python -m timeit -n 1000 '"".join(["x" * 5000 for n in range(1000)])'
 1000 loops, best of 5: 451 usec per loop
 % python -m timeit -n 1000 '"".join("x" * 5000 for n in range(1000))'
 1000 loops, best of 5: 456 usec per loop
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36242#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 visit 
https://groups.google.com/d/msgid/django-updates/010701958227de4b-f78dd20d-5217-4239-91ad-aa9fd2aef868-000000%40eu-central-1.amazonses.com.

Reply via email to