Performance Optimization¶
Optimize FlavorPack package size, build time, and runtime performance.
๐ค AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
Package Size Optimization¶
Keep Dependencies Lean¶
[project]
dependencies = [
"requests>=2.28",
]
[project.optional-dependencies]
dev = ["pytest", "ruff"]
Strip Binaries¶
Trim Assets¶
Remove large, unused assets before packaging to keep payload size small.
Build Performance¶
Use Local Caches¶
Use Custom Helpers When Needed¶
# Use a prebuilt launcher or builder
flavor pack --launcher-bin /path/to/launcher --builder-bin /path/to/builder
Runtime Performance¶
Warm Cache¶
The first run extracts the package; subsequent runs reuse the workenv cache.