Can pytest benefit from PEP 703 (making the GIL optional)? #11141
Unanswered
gabrieldemarmiesse
asked this question in
Ideas
Replies: 1 comment
-
Currently pytest is not affected Pytest itself isn't using threads and the internals are not threadsafe |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm Gabriel de Marmiesse and I'm helping Sam Gross to find out if maintainers of selected Python packages would benefit from PEP703.
If you don't know what is PEP 703, it's about making the global interpreter lock (GIL) optional.
Long story short, there would be a ~6% performance impact on single threaded programs, but would allow multithreaded programs to take full advantage of multiple cores.
You can play with it here.
If you have the time, we would like to know if the maintainers of pytest would benefit from PEP 703 or not. For example to collect tests faster, or to run multiple independant fixtures simultanously. I also know about pytest-xdist using processes but maybe isolation is a desired feature there so we wouldn't change anything. There are multiple situations pytest could be in.
The Python language could never use multiple cores with multithreading, so it's hard to imagine what the future of the language would look like if we were to enable it. Feel free to tell us if you see new potential use cases or problems with this PEP. Thanks for your time!
If you want to know more about PEP 703:
Beta Was this translation helpful? Give feedback.
All reactions