You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FWIW, performance benefits when subinterpreters stop sharing the GIL are not the only benefit. In fact, PEP-554 is specifically written to avoid that consideration, focusing on the benefits of the concurrency model (i.e. CSP). So I wouldn't call this pointless even without per-interpreter GIL. :)
(Of course, this *would* be blocked on acceptance and implementation of PEP-554.)
Activity
crusaderky commentedon Jun 15, 2019
As one of the logical consequences to PEP-554, it would be neat to have a concurrent.futures.InterpreterPoolExecutor.
I wrote the initial code at https://github.com/crusaderky/subinterpreters_tests - currently missing unit tests and pickle5 buffers support.
If everybody is happy with the design, I'll start working on a PR as soon as the GIL becomes per-interpreter (it's kinda pointless before that).
ericsnowcurrently commentedon Jun 21, 2019
FWIW, performance benefits when subinterpreters stop sharing the GIL are not the only benefit. In fact, PEP-554 is specifically written to avoid that consideration, focusing on the benefits of the concurrency model (i.e. CSP). So I wouldn't call this pointless even without per-interpreter GIL. :)
(Of course, this *would* be blocked on acceptance and implementation of PEP-554.)
ericsnowcurrently commentedon Jun 21, 2019
@davin, we've spoken before about something similar for multiprocessing, IIRC. :)
jakirkham commentedon Oct 22, 2024
Think this can be closed now that PR ( #124548 ) is merged
ericsnowcurrently commentedon Oct 22, 2024
Duplicate of gh-124694. (or rather, I didn't see this one when I created the other one.)