-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Add a mechanism to disable the GIL #116167
Copy link
Copy link
Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-free-threadingtype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-free-threadingtype-featureA feature request or enhancementA feature request or enhancement
Fields
Give feedbackNo fields configured for issues without a type.
Feature or enhancement
Proposal:
PYTHON_GIL=0 python ...orpython -Xgil=0 ...should disable the GIL at runtime, inPy_GIL_DISABLEDbuilds. This will be similar in spirit to colesbury/nogil-3.12@f546dbf16a.Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
https://peps.python.org/pep-0703/
Linked PRs
PYTHON_GIL=0or-X gil=0#116338