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

precompile all python files to increase startup speed? #73

Open
jensens opened this issue Oct 16, 2022 · 1 comment
Open

precompile all python files to increase startup speed? #73

jensens opened this issue Oct 16, 2022 · 1 comment

Comments

@jensens
Copy link
Member

jensens commented Oct 16, 2022

actually we have two options:

  1. small images size, slower startup (like now)
  2. larger image size with pre-compiled python files and faster startup.

I would precompile in first stage already and have all on one layer on copy.

Hint: python -m compileall .

@jensens
Copy link
Member Author

jensens commented Oct 17, 2022

It grows by 43MB, which IMO would be OK - now I need to figure out how to measure Zope startup time in the entry point.

jensens added a commit that referenced this issue Oct 17, 2022
jensens added a commit that referenced this issue Oct 17, 2022
jensens added a commit that referenced this issue Oct 17, 2022
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

1 participant