[Django] #26284: Improve django.setup() and app loading performance

5 views
Skip to first unread message

Django

unread,
Feb 26, 2016, 9:53:58 AM2/26/16
to django-...@googlegroups.com
#26284: Improve django.setup() and app loading performance
--------------------------------------+--------------------
Reporter: Miserlou | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Core (Other) | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
I imagine that this is an area that hasn't really been given much
consideration with regards to optimization, because it isn't relevant to
normal Django deployments. However, with "serverless" deployments (those
without any permanent infrastructure), this becomes quite relevant as we
have to call setup() every request.

This ticket is for discussing performance optimizations to Django's setup
method. (A sample output for profile is available here:
https://github.com/Miserlou/django-zappa/issues/24 )

For starters - can we load apps in parallel?

--
Ticket URL: <https://code.djangoproject.com/ticket/26284>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 26, 2016, 9:55:47 AM2/26/16
to django-...@googlegroups.com
#26284: Improve django.setup() and app loading performance
-------------------------------------+-------------------------------------
Reporter: Miserlou | Owner: nobody
Type: | Status: new
Cleanup/optimization |

Component: Core (Other) | Version: 1.9
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* needs_better_patch: => 0
* stage: Unreviewed => Someday/Maybe
* needs_tests: => 0
* needs_docs: => 0


Comment:

Generally, it's better to raise broad ideas on the DevelopersMailingList
and open tickets for specific action items.

--
Ticket URL: <https://code.djangoproject.com/ticket/26284#comment:1>

Django

unread,
Mar 8, 2016, 8:37:33 PM3/8/16
to django-...@googlegroups.com
#26284: Improve django.setup() and app loading performance
-------------------------------------+-------------------------------------
Reporter: Miserlou | Owner: nobody
Type: | Status: new
Cleanup/optimization |

Component: Core (Other) | Version: 1.9
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by cristianocca):

For the record, here's the topic: https://groups.google.com/forum/#!topic
/django-developers/TN4QJkcuMow

It doesn't seem like an issue anymore to me, since you should not be
calling setup() every time (which was the end of the discussion, since
there was a way to avoid calling it on every request).

--
Ticket URL: <https://code.djangoproject.com/ticket/26284#comment:2>

Django

unread,
Mar 8, 2016, 9:53:09 PM3/8/16
to django-...@googlegroups.com
#26284: Improve django.setup() and app loading performance
-------------------------------------+-------------------------------------
Reporter: Miserlou | Owner: nobody
Type: | Status: closed
Cleanup/optimization |

Component: Core (Other) | Version: 1.9
Severity: Normal | Resolution: needsinfo

Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* status: new => closed
* resolution: => needsinfo


--
Ticket URL: <https://code.djangoproject.com/ticket/26284#comment:3>

Reply all
Reply to author
Forward
0 new messages