]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-139922: Add tail call for MSVC for whats new in 3.15 (GH-143087)
authorKen Jin <kenjin@python.org>
Mon, 22 Dec 2025 23:56:26 +0000 (07:56 +0800)
committerGitHub <noreply@github.com>
Mon, 22 Dec 2025 23:56:26 +0000 (23:56 +0000)
Doc/whatsnew/3.15.rst

index 3c7e28a00c9c1a44b72cdc7901920e11986f5404..aa138c9cacb02117226771ab42017a3b7baf05d9 100644 (file)
@@ -849,6 +849,16 @@ zlib
 Optimizations
 =============
 
+* Builds using Visual Studio 2026 (MSVC 18) may now use the new
+  :ref:`tail-calling interpreter <whatsnew314-tail-call-interpreter>`.
+  Results on an early experimental MSVC compiler reported roughly 15% speedup
+  on the geometric mean of pyperformance on Windows x86-64 over
+  the switch-case interpreter. We have
+  observed speedups ranging from 15% for large pure-Python libraries
+  to 40% for long-running small pure-Python scripts on Windows.
+  (Contributed by Chris Eibl, Ken Jin, and Brandt Bucher in :gh:`143068`.
+  Special thanks to the MSVC team including Hulon Jenkins.)
+
 csv
 ---