From 248cfefbf481a65b6e5a3b2162a0c94b36d01d08 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 25 Oct 2018 17:14:06 +0200 Subject: [PATCH] bpo-35059, PCbuild: Expand inline funcs in Debug Visual Studio solution: Set InlineFunctionExpansion to OnlyExplicitInline ("/Ob1" option) on all projects (in pyproject.props) in Debug mode on Win32 and x64 platforms to expand functions marked as inline. This change should make Python compiled in Debug mode a little bit faster on Windows. On Unix, GCC uses -Og optimization level for ./configure --with-pydebug. --- .../next/Build/2018-10-26-14-49-19.bpo-35059.PKsBxP.rst | 4 ++++ PCbuild/pyproject.props | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 Misc/NEWS.d/next/Build/2018-10-26-14-49-19.bpo-35059.PKsBxP.rst diff --git a/Misc/NEWS.d/next/Build/2018-10-26-14-49-19.bpo-35059.PKsBxP.rst b/Misc/NEWS.d/next/Build/2018-10-26-14-49-19.bpo-35059.PKsBxP.rst new file mode 100644 index 00000000000000..262161637b1354 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2018-10-26-14-49-19.bpo-35059.PKsBxP.rst @@ -0,0 +1,4 @@ +PCbuild: Set InlineFunctionExpansion to OnlyExplicitInline ("/Ob1" option) +in pyproject.props in Debug mode to expand functions marked as inline. This +change should make Python compiled in Debug mode a little bit faster on +Windows. diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props index 6d36977456e092..95b349c077e5bc 100644 --- a/PCbuild/pyproject.props +++ b/PCbuild/pyproject.props @@ -42,6 +42,8 @@ true true NoExtensions + OnlyExplicitInline + OnlyExplicitInline Disabled