#29065: Only load Pillow if needed
-------------------------------------+-------------------------------------
Reporter: Collin Anderson | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Core (Other) | Version: 2.0
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Collin Anderson):
A few advantages:
If for some reason you can't or have trouble installing pillow, everything
else will work fine. It makes django a bit more "lightweight" to have the
dependency be optional.
Loading Pillow increases memory usage by 5% (2mb) (in my quick testing)
for a runserver on an empty project:
37608kb without loading pillow
39768kb with loading pillow
Also, doesn't matter quite as much, but running "check" also takes about
5% longer (25ms) on an empty project for me when including pillow:
360-400ms without loading pillow
393-424ms with loading pillow
--
Ticket URL: <https://code.djangoproject.com/ticket/29065#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/072.f1dab9710e0ce8774f7ed78212836fa6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.