logoalt Hacker News

thundergolferlast Friday at 9:54 PM0 repliesview on HN

This optimization hits serverless Python the worst. At Modal we ensure users of uv are setting UV_COMPILE_BYTECODE to avoid the cold start penalty. For large projects .pyc compilation can take hundreds of milliseconds.