#30372: Django (moderately) High CPU usage at Idle
-------------------------------------+-------------------------------------
Reporter: Benjamin Schollnick | Owner: nobody
Type: Bug | Status: closed
Component: Core (Other) | Version: 2.2
Severity: Normal | Resolution: needsinfo
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 Tom Forbes):
Hey Andy,
I have a hunch about where some of this excess load comes from. If you're
willing it would be very helpful if you could try installing my branch:
{{{
pip install https://github.com/orf/django/archive/30372-speedups.zip
}}}
Alternatively you could set the `USE_I18N` setting to `False` in your
project.
I think it's the code that recurses through the `locale` directories to
watch for changes to `.mo` files. Django ships with a large number of
built in translation files that never change, and iterating through the
several hundred directories might be the cause of some of the slowdown
you're seeing.
--
Ticket URL: <https://code.djangoproject.com/ticket/30372#comment:15>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.24fad14355760c833f35acbb98eb8a1b%40djangoproject.com.