plone / plone/container-backend

precompile all python files to increase startup speed?

Open
#73 1 comment 0 reactions 0 assignees View on GitHub

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:

  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 .

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.