Does granian support a pre-fork model? #517
Answered
by
gi0baro
beaugunderson
asked this question in
Q&A
-
Our application is very large and we're operating in memory-constrained environments. Because of this we use a pre-fork model to benefit from copy-on-write. Is this possible with granian? |
Beta Was this translation helpful? Give feedback.
Answered by
gi0baro
Mar 12, 2025
Replies: 1 comment 1 reply
-
Nope. Each worker needs a clean interpreter state on boot. The only implementation that shares the application between workers is the freethreaded one (Python 3.13t), but that's also currently quite experimental. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gi0baro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nope. Each worker needs a clean interpreter state on boot.
The only implementation that shares the application between workers is the freethreaded one (Python 3.13t), but that's also currently quite experimental.