﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25322	Lazily compile core.validators regular expressions	Jonas Haag	nobody	"Avoiding a lot of slow `re.compile()` calls at the module-level in `django.core.validators` can save a few hundred milliseconds when importing the module for the first time, which is a significant speedup to the `django-admin` command (and possibly other places as well).

Benchmarks using `time django-admin`:

- master:
  - Python 2: `0.56 real         0.49 user         0.06 sys`
  - Python 3: `        0.56 real         0.52 user         0.03 sys`
- patched:
  - Python 2: `        0.26 real         0.20 user         0.05 sys`
  - Python 3: `        0.35 real         0.31 user         0.03 sys`

[https://github.com/django/django/pull/5194 PR]"	Cleanup/optimization	closed	Core (Other)	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
