plone / plone/container-backend
precompile all python files to increase startup speed?
Open
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 18
- Forks
- 18
- Avg merge
- 1h 32m
- Merged PRs (30d)
- 2
Description
actually we have two options:
- small images size, slower startup (like now)
- 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 .
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the Docker image's first build stage and the COPY steps, then review how Python files are currently included. Compare the existing image size and startup behavior with a build using python -m compileall .; the work is done when the chosen trade-off is implemented consistently and its image-size and startup impact are documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- build-system, devops
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100