3 ms·
I thought WSGI already used subinterpreters that each have their own GIL
by mkoubaa 1y ago
I thought WSGI already used subinterpreters that each have their own GIL
- deleted 1y ago[deleted]
- theandrewbailey 1y agoSubinterpreters are part of the Python standard library as of 3.13 (I think?).
- ZiiS 1y agoThis needs a lot of RAM with the speed/cores of modern CPUs. A GIL free multi threaded ASGI scales much further.
- pas 1y agoWSGI is just the protocol for web request handling (like CGI, fast CGI), some implementations utilized subinterpreter support through the C API (which existed in its basic form since Python 1.5 according to PEP 554 or since 2.2 according to the current docs) but before 3.12 the isolation was not great (and still there are basic process-level things that cannot be non-shared per interpreter) https://docs.python.org/3/library/concurrent.interpreters.html#introduction https://docs.python.org/3/library/concurrent.interpreters.ht...