Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analyze Profiler Output #24

Closed
Miserlou opened this issue Feb 22, 2016 · 7 comments
Closed

Analyze Profiler Output #24

Miserlou opened this issue Feb 22, 2016 · 7 comments

Comments

@Miserlou
Copy link
Owner

This ended up being way more detailed than I anticipated.
profile.txt

@Miserlou
Copy link
Owner Author

Well, right off the bat it looks like:

(call)| 1| 2.70472| 2.70472| 71.79%|# /private/var/folders/00/vp4bg2md3ng4sqkg3hrz_j1003frjd/T/pip-build-iHBwmU/Django/django/init.py:8 setup

70% of the time is spent setting up Django. That seems like a good starting point.

The majority of the rest is in

(call)| 1| 1.04399| 1.04399| 27.71%|# /private/var/folders/00/vp4bg2md3ng4sqkg3hrz_j1003frjd/T/pip-build-iHBwmU/Django/django/core/handlers/wsgi.py:162 call

and everything else looks pretty trivial.

@Miserlou
Copy link
Owner Author

In setup(), populate eats the most..

@Miserlou
Copy link
Owner Author

Poking @stephrdev in case you have any insights/magic tricks you can think of to throw at this!

@Miserlou
Copy link
Owner Author

Ticket for upstream discussion: https://code.djangoproject.com/ticket/26284

@Miserlou
Copy link
Owner Author

Miserlou commented Mar 8, 2016

We got this down to ~30ms.

@sridhar562345
Copy link

@Miserlou can you provide more details on how you optimized this?

@souravjamwal77
Copy link

Hi @sridhar562345 The new, official, and actively managed Zappa project is here.
You can post your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants