diff options
author | Savannah Ostrowski <savannahostrowski@gmail.com> | 2024-04-12 18:19:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-12 18:19:41 (GMT) |
commit | a97650912e0d17b15fea70dd114577630635d326 (patch) | |
tree | 9af8cd666ba80868585c0bf189325ef311a1eb16 | |
parent | 4ad8f090cce03c24fd4279ec8198a099b2d0cf97 (diff) | |
download | cpython-a97650912e0d17b15fea70dd114577630635d326.zip cpython-a97650912e0d17b15fea70dd114577630635d326.tar.gz cpython-a97650912e0d17b15fea70dd114577630635d326.tar.bz2 |
gh-117739: Update definition of global interpreter lock for 3.13 (#117740)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
-rw-r--r-- | Doc/glossary.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst index ee8b266..9239bfe 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -547,12 +547,12 @@ Glossary tasks such as compression or hashing. Also, the GIL is always released when doing I/O. - Past efforts to create a "free-threaded" interpreter (one which locks - shared data at a much finer granularity) have not been successful - because performance suffered in the common single-processor case. It - is believed that overcoming this performance issue would make the - implementation much more complicated and therefore costlier to maintain. - + As of Python 3.13, the GIL can be disabled using the :option:`--disable-gil` + build configuration. After building Python with this option, code must be + run with :option:`-X gil 0 <-X>` or after setting the :envvar:`PYTHON_GIL=0 <PYTHON_GIL>` + environment variable. This feature enables improved performance for + multi-threaded applications and makes it easier to use multi-core CPUs + efficiently. For more details, see :pep:`703`. hash-based pyc A bytecode cache file that uses the hash rather than the last-modified |