#32919: Micro-optimisations for lexing & parsing of templates.
-------------------------------------+-------------------------------------
     Reporter:  Keryn Knight         |                    Owner:  Keryn
         Type:                       |  Knight
  Cleanup/optimization               |                   Status:  closed
    Component:  Template system      |                  Version:  dev
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Keryn Knight <keryn@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"edf184dd067e676962e8e1fc1a50397b810461d6" edf184d]:
 {{{
 #!CommitTicketReference repository=""
 revision="edf184dd067e676962e8e1fc1a50397b810461d6"
 Fixed #32919 -- Optimized lexing & parsing of templates.

 This optimizes:
 - Lexer.create_token() by avoiding startswith() calls,
 - Parser.parse() by re-using the token type enum's value,
 - Parser.extend_nodelist() by removing unnecessary isinstance() check,
 - some Node subclasses by removing the implicit "nodelist" from
   "child_nodelists",
 - Variable.__init__() by avoiding startswith() calls.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32919#comment:4>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.415c05017be14bac384ec39faf53481f%40djangoproject.com.

Reply via email to