Skip to content

@remotion/lambda: Faster renders when using warm starts#2991

Merged
JonnyBurger merged 10 commits intomainfrom
lambda-no-process-exit
Oct 9, 2023
Merged

@remotion/lambda: Faster renders when using warm starts#2991
JonnyBurger merged 10 commits intomainfrom
lambda-no-process-exit

Conversation

@JonnyBurger
Copy link
Copy Markdown
Member

@JonnyBurger JonnyBurger commented Oct 9, 2023

  • We don't call process.exit(0) anymore after a render, since the event loop leaks have been cleaned up.
  • When possible, we re-use opened Chrome instances, and unref them so the Lambda shuts down correctly
  • When the configuration changes (e.g. different gl value), we restart the browser

Finally solved all the tradeoffs!

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Oct 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bugs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2023 4:07pm
remotion ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2023 4:07pm

@JonnyBurger JonnyBurger changed the title @remotion/lambda: Don't call process.exit(0) to keep Lambdas warm @remotion/lambda: Faster renders when using warm starts Oct 9, 2023
@JonnyBurger JonnyBurger enabled auto-merge October 9, 2023 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant