#25491: django.utils.regex_helper.normalize should cache results locally
--------------------------------------+--------------------
     Reporter:  atl-gmathews          |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Utilities             |    Version:  1.8
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 This function is used to process URL regexes for
 django.core.urlresolvers.reverse, and can get called a lot in reverse-
 heavy code.

 This function is relatively expensive, has no side effects, and always
 returns the same output for a given input. Therefore it makes sense to
 memoize it with a local cache.

--
Ticket URL: <https://code.djangoproject.com/ticket/25491>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/055.0eefc9c075d44c7826bfa687c32fd71c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to