Opened 7 years ago

Closed 7 years ago

#26284 closed Cleanup/optimization (needsinfo)

Improve django.setup() and app loading performance

Reported by: Rich Jones Owned by: nobody
Component: Core (Other) Version: 1.9
Severity: Normal Keywords:
Cc: Triage Stage: Someday/Maybe
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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?

Change History (3)

comment:1 Changed 7 years ago by Tim Graham

Triage Stage: UnreviewedSomeday/Maybe

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

comment:2 Changed 7 years ago by Cristiano Coelho

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).

comment:3 Changed 7 years ago by Tim Graham

Resolution: needsinfo
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top