From 714037ba845a5a5168a7a8648befce203e2f0c24 Mon Sep 17 00:00:00 2001 From: Ken Jin Date: Tue, 23 Dec 2025 07:56:26 +0800 Subject: [PATCH] gh-139922: Add tail call for MSVC for whats new in 3.15 (GH-143087) --- Doc/whatsnew/3.15.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst index 3c7e28a00c9..aa138c9cacb 100644 --- a/Doc/whatsnew/3.15.rst +++ b/Doc/whatsnew/3.15.rst @@ -849,6 +849,16 @@ zlib Optimizations ============= +* Builds using Visual Studio 2026 (MSVC 18) may now use the new + :ref:`tail-calling 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 ---