Vercel
7/21/2026

Python function bundles now include precompiled bytecode
Short summary
Vercel now precompiles Python function bytecode at build time, including both application code and dependencies, reducing median cold starts from 2.8s to 1.3s. The interpreter skips compilation at startup by shipping .pyc files in the function bundle. No code changes are required, though functions near the bundle size limit see smaller gains.
- •Vercel compiles Python to bytecode at build time, cutting median cold starts from 2.8s to 1.3s
- •Both app code and dependencies are precompiled into .pyc files in the bundle
- •No code changes needed; functions near size limits see smaller improvements
Generated with AI, which can make mistakes.
Is this a good recommendation for you?


