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

Isolating apps by using subinterpreters #10

Open
mliezun opened this issue Apr 3, 2024 · 0 comments
Open

Isolating apps by using subinterpreters #10

mliezun opened this issue Apr 3, 2024 · 0 comments

Comments

@mliezun
Copy link
Owner

mliezun commented Apr 3, 2024

Run each app on a separate subinterpreter, that will make them isolated from each other.

Since Python 3.12, subinterpreters can have their own GIL. That will also make the faster and more resource efficient.

As of now, there's a draft PR #9. While working on it I found a bug that doesn't allow to successfully use subinterpreters in Python 3.12 or later. I filed an issue on the CPython project python/cpython#117482

Overall subinterpreters don't seem stable and I think they still need some improvements in future Python versions to make them usable.

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

No branches or pull requests

1 participant