@@ -88,6 +88,7 @@ and improvements in user-friendliness and correctness.
88
88
* :ref: `PEP 758: Allow except and except* expressions without parentheses <whatsnew314-pep758 >`
89
89
* :ref: `PEP 761: Discontinuation of PGP signatures <whatsnew314-pep761 >`
90
90
* :ref: `PEP 765: Disallow return/break/continue that exit a finally block <whatsnew314-pep765 >`
91
+ * :ref: `Free-threaded mode improvements <whatsnew314-free-threaded-cpython >`
91
92
* :ref: `PEP 768: Safe external debugger interface for CPython <whatsnew314-pep768 >`
92
93
* :ref: `PEP 784: Adding Zstandard to the standard library <whatsnew314-pep784 >`
93
94
* :ref: `A new type of interpreter <whatsnew314-tail-call >`
@@ -794,6 +795,27 @@ For further information on how to build Python, see
794
795
(Contributed by Ken Jin in :gh: `128563 `, with ideas on how to implement this
795
796
in CPython by Mark Shannon, Garrett Gu, Haoran Xu, and Josh Haberman.)
796
797
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
+
797
819
798
820
.. _whatsnew314-pyrepl-highlighting :
799
821
0 commit comments