#25491: django.utils.regex_helper.normalize should cache results locally
-------------------------------------+-------------------------------------
Reporter: atl-gmathews | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Utilities | Version: 1.8
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 atl-gmathews):
I think my data is off for this issue: I made several requests to warm up
caches before profiling, but those requests were with an un-authenticated
user. I then profiled with requests from an authenticated user, which
instantiated a new `RegexURLResolver` and thus made a new `_populate()`
call.
So this change doesn't make most things faster, but it does make the
initial request much faster (31% faster for unauthorized, 37% for
authorized).
--
Ticket URL: <https://code.djangoproject.com/ticket/25491#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 [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/070.faf7e624f31771d87e7fbbe55a63a650%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.