summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2020-09-22 08:53:17 +0100
committerGitHub <noreply@github.com>2020-09-22 09:53:17 +0200
commit2d2fbc3a70e4c3c38f0f78869dacd5588aa6a3bd (patch)
treef3c25a04d1fde93100349e24bae7803e26ef10c1 /tests/admin_scripts
parente387f191f76777015b6ea687ce83cdb05ee47cee (diff)
Made jinja2 import lazy in django.forms.
Benchmarking shows that about 22% of the startup time for a simple django project was spent importing jinja2, which the project doesn't use. It's reasonable to make this import lazy. This will only affect projects where jinja2 is installed but not used, but given the prevalence of jinja2 that's likely to be many environments (e.g. if Ansible is installed, or the global Python install is used).
Diffstat (limited to 'tests/admin_scripts')
0 files changed, 0 insertions, 0 deletions