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

Reuse Python handler processes for performance. #949

Merged
merged 5 commits into from May 5, 2020

Conversation

tom-marsh
Copy link
Contributor

The current implementation for Python handlers spawns a new child process on each endpoint invocation, which then has to re-do all of the Python imports/bootstrapping, which can be quite slow for large projects.

This PR keeps a process around for each handler function that it reuses on each new invocation, making it much more performant.

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

Successfully merging this pull request may close these issues.

None yet

2 participants