Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: resource cleanup, don't start module reloader in run mode #3656

Merged
merged 2 commits into from
Feb 2, 2025

Conversation

akshayka
Copy link
Contributor

@akshayka akshayka commented Feb 2, 2025

Don't start module autoreloader in run mode, since it's not needed; this should stem a memory leak in run mode. Still need to see if the reloader is leaking memory in edit mode. Hopefully improves #3623.

Cleanup some threads in on kernel shutdown, which should improve edit mode performance when using a long-lived marimo edit server:

  • Shut down the module watcher on kernel shutdown
  • Stop the standard io forwarding threads

Don't start module autoreloader in run mode, since it's not needed;
this should stem a memory leak in run mode. Still need to see if the
reloader is leaking memory in edit mode.

Cleanup some threads in both run and edit mode on kernel shutdown

* Shut down the module watcher on kernel shutdown
* Stop the standard io forwarding threads
Copy link

vercel bot commented Feb 2, 2025

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

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 2, 2025 5:38pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
marimo-storybook ⬜️ Ignored (Inspect) Visit Preview Feb 2, 2025 5:38pm

@akshayka akshayka marked this pull request as draft February 2, 2025 17:30
@akshayka akshayka merged commit 50710bb into main Feb 2, 2025
33 of 34 checks passed
@akshayka akshayka deleted the aka/improve-disable-module-reload-run-mode branch February 2, 2025 17:45
Copy link

github-actions bot commented Feb 2, 2025

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.10.20-dev16

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.

2 participants