Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply review suggestions by Hugo
  • Loading branch information
Fidget-Spinner committed Feb 7, 2025
commit 1994d22d5b9fb5a284ed244201f3001dbb589c28
4 changes: 2 additions & 2 deletions Doc/using/configure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -624,9 +624,9 @@ also be used to improve performance.
(:option:`--enable-optimizations`) is highly recommended. This option specifically
requires a C compiler with proper tail call support, and the
`preserve_none <https://clang.llvm.org/docs/AttributeReference.html#preserve-none>`_
calling convention.
calling convention. For example, Clang 19 and newer supports this feature.

.. versionadded:: 3.14
.. versionadded:: next

.. option:: --without-mimalloc

Expand Down
7 changes: 4 additions & 3 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Summary -- release highlights
* :ref:`PEP 649: deferred evaluation of annotations <whatsnew314-pep649>`
* :ref:`PEP 741: Python Configuration C API <whatsnew314-pep741>`
* :ref:`PEP 761: Discontinuation of PGP signatures <whatsnew314-pep761>`

* :ref:`A new tail-calling interpreter <whatsnew314-tail-call>`

New features
============
Expand Down Expand Up @@ -208,17 +208,18 @@ configuration mechanisms).
.. seealso::
:pep:`741`.

.. _whatsnew314-tail-call:

A new tail-calling interpreter
Comment thread
Fidget-Spinner marked this conversation as resolved.
------------------------------

A new type of interpreter based on tail calls has been added to CPython.
For certain newer compilers, this interpreter provides
significantly better performance. Preliminary numbers on our machines suggest
anywhere from -3% to 40% faster Python code, and a geometric mean of 9-15%
anywhere from -3% to 30% faster Python code, and a geometric mean of 9-15%
faster on ``pyperformance`` depending on platform and architecture.

This interpreter currently only works with ``clang-19`` and newer
This interpreter currently only works with Clang 19 and newer
on x86-64 and AArch64 architectures. However, we expect
that a future release of GCC will support this as well.

Expand Down