Skip to content

Commit f28cbc9

Browse files
corona10StanFromIrelandYhg1smpage
authored
gh-115999: Note Python 3.14 free-threaded changes in What's New (gh-131285)
--------- Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: T. Wouters <[email protected]> Co-authored-by: mpage <[email protected]>
1 parent 30b1d8f commit f28cbc9

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Doc/whatsnew/3.14.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ and improvements in user-friendliness and correctness.
8888
* :ref:`PEP 758: Allow except and except* expressions without parentheses <whatsnew314-pep758>`
8989
* :ref:`PEP 761: Discontinuation of PGP signatures <whatsnew314-pep761>`
9090
* :ref:`PEP 765: Disallow return/break/continue that exit a finally block <whatsnew314-pep765>`
91+
* :ref:`Free-threaded mode improvements <whatsnew314-free-threaded-cpython>`
9192
* :ref:`PEP 768: Safe external debugger interface for CPython <whatsnew314-pep768>`
9293
* :ref:`PEP 784: Adding Zstandard to the standard library <whatsnew314-pep784>`
9394
* :ref:`A new type of interpreter <whatsnew314-tail-call>`
@@ -794,6 +795,27 @@ For further information on how to build Python, see
794795
(Contributed by Ken Jin in :gh:`128563`, with ideas on how to implement this
795796
in CPython by Mark Shannon, Garrett Gu, Haoran Xu, and Josh Haberman.)
796797

798+
.. _whatsnew314-free-threaded-cpython:
799+
800+
Free-threaded mode
801+
------------------
802+
803+
Free-threaded mode (:pep:`703`), initially added in 3.13, has been significantly improved.
804+
The implementation described in PEP 703 was finished, including C API changes,
805+
and temporary workarounds in the interpreter were replaced with more permanent solutions.
806+
The specializing adaptive interpreter (:pep:`659`) is now enabled in free-threaded mode,
807+
which along with many other optimizations greatly improves its performance.
808+
The performance penalty on single-threaded code in free-threaded mode is now roughly 5-10%,
809+
depending on platform and C compiler used.
810+
811+
This work was done by many contributors: Sam Gross, Matt Page, Neil Schemenauer,
812+
Thomas Wouters, Donghee Na, Kirill Podoprigora, Ken Jin, Itamar Oren,
813+
Brett Simmers, Dino Viehland, Nathan Goldbaum, Ralf Gommers, Lysandros Nikolaou,
814+
Kumar Aditya, Edgar Margffoy, and many others.
815+
816+
Some of these contributors are employed by Meta, which has continued to provide
817+
significant engineering resources to support this project.
818+
797819

798820
.. _whatsnew314-pyrepl-highlighting:
799821

0 commit comments

Comments
 (0)