Skip to content

Commit c2d689d

Browse files
corona10Yhg1s
andauthored
Update Doc/whatsnew/3.14.rst
Co-authored-by: T. Wouters <thomas@python.org>
1 parent 90cbdaf commit c2d689d

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

Doc/whatsnew/3.14.rst

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -315,21 +315,15 @@ in CPython by Mark Shannon, Garrett Gu, Haoran Xu, and Josh Haberman.)
315315

316316
.. _whatsnew314-free-threaded-cpython:
317317

318-
Free-threaded CPython
318+
Free-threaded mode
319319
---------------------
320320

321-
Free-threaded CPython now supports :pep:`659` which is known
322-
as the specializing adaptive interpreter. The execution mechanism is almost same
323-
as the default build, however in a free-threaded CPython build, each thread
324-
maintains a thread-local copy of specialized bytecode.
321+
The free-threaded mode (:pep:`703`), initially added in 3.13, has been significantly improved. The implementation described in PEP 703 was finished, including C API changes, and temporary workarounds in the interpreter were replaced with more permanent solutions. The specializing adaptive interpreter (:pep:`659`) is now enabled in free-threaded mode, which along with many other optimizations greatly improves its performance. The performance penalty on single-threaded code in free-threaded mode is now roughly 5-10%, depending on platform and C compiler used.
325322

326-
With this change, the free-threaded CPython build achieves better performance,
327-
and is only 10-15% slower than the default build.
323+
This work was done by many contributors: Sam Gross, Matt Page, Neil Schemenauer, Thomas Wouters, Donghee Na, Kirill Podoprigora, Ken Jin, Itamar Oren, Brett Simmers, Dino Viehland, Nathan Goldbaum, Ralf Gommers,
324+
Lysandros Nikolaou, and many others.
328325

329-
This work was done by many contributors, Matt Page, Neil Schemenauer,
330-
Sam Gross, Thomas Wouters, Donghee Na, Kirill Podoprigora and Ken Jin.
331-
Meta also provided significant engineering resources for performance benchmarking and
332-
design of per thread specialized bytecode mechanisms.
326+
Some of these contributors are employed by Meta, which has continued to provide significant engineering resources to support this project.
333327

334328

335329
Other language changes

0 commit comments

Comments
 (0)