-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-115999: Note Python 3.14 free-threaded changes in What's New #131285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
2b11fd2
4b87b5b
e384e7a
1b0d395
90cbdaf
c2d689d
244d00c
090a33e
64a7af0
2fdbac5
920b493
290149a
3dd4d3f
ce28d25
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,6 +69,7 @@ Summary -- release highlights | |
| * :ref:`PEP 761: Discontinuation of PGP signatures <whatsnew314-pep761>` | ||
| * :ref:`A new type of interpreter <whatsnew314-tail-call>` | ||
| * :ref:`PEP 765: Disallow return/break/continue that exit a finally block <whatsnew314-pep765>` | ||
| * :ref:`Free-threaded CPython <whatsnew314-free-threaded-cpython>` | ||
|
|
||
|
|
||
| Incompatible changes | ||
|
|
@@ -312,6 +313,24 @@ For further information on how to build Python, see | |
| (Contributed by Ken Jin in :gh:`128563`, with ideas on how to implement this | ||
| in CPython by Mark Shannon, Garrett Gu, Haoran Xu, and Josh Haberman.) | ||
|
|
||
| .. _whatsnew314-free-threaded-cpython: | ||
|
|
||
| Free-threaded CPython | ||
| --------------------- | ||
|
|
||
| Free-threaded CPython now supports :pep:`659` which is known | ||
| as the specializing adaptive interpreter. The execution mechanism is almost same | ||
| as the default build, however in a free-threaded CPython build, each thread | ||
| maintains a thread-local copy of specialized bytecode. | ||
|
|
||
| With this change, the free-threaded CPython build achieves better performance, | ||
| and is only 10-15% slower than the default build. | ||
|
|
||
| This work was done by many contributors, Matt Page, Neil Schemenauer, | ||
| Sam Gross, Thomas Wouters, Donghee Na, Kirill Podoprigora and Ken Jin. | ||
|
||
| Meta also provided significant engineering resources for performance benchmarking and | ||
| design of per thread specialized bytecode mechanisms. | ||
|
|
||
corona10 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Other language changes | ||
| ====================== | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.