#20757: A more Object-Oriented URLResolver
-----------------------------+------------------------------------
     Reporter:  fcurella     |                    Owner:  nobody
         Type:  New feature  |                   Status:  new
    Component:  Core (URLs)  |                  Version:  master
     Severity:  Normal       |               Resolution:
     Keywords:               |             Triage Stage:  Accepted
    Has patch:  1            |      Needs documentation:  0
  Needs tests:  1            |  Patch needs improvement:  1
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+------------------------------------

Comment (by fcurella):

 I've updated the patch to use namedtuples and rebased against
 7523e784633b7757fbc82df58f80b197eeed988a.

 Re performance: according to the Python docs 'Named tuple instances do not
 have per-instance dictionaries, so they are lightweight and require no
 more memory than regular tuples.'.

 I'd still like to run some profiling to have a better idea of the impact
 of this change. Memory consumption might be the same, but instantiation
 could have an overhead.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20757#comment:5>
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.63c00b768f92589f9b0db285ccb077fa%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to