diff options
-rw-r--r-- | Misc/NEWS.d/next/Build/2018-10-26-14-49-19.bpo-35059.PKsBxP.rst | 4 | ||||
-rw-r--r-- | PCbuild/pyproject.props | 2 |
2 files changed, 6 insertions, 0 deletions
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 0000000..2621616 --- /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 6d36977..95b349c 100644 --- a/PCbuild/pyproject.props +++ b/PCbuild/pyproject.props @@ -42,6 +42,8 @@ <SuppressStartupBanner>true</SuppressStartupBanner> <WholeProgramOptimization>true</WholeProgramOptimization> <EnableEnhancedInstructionSet Condition="'$(Platform)'=='Win32'">NoExtensions</EnableEnhancedInstructionSet> + <InlineFunctionExpansion Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">OnlyExplicitInline</InlineFunctionExpansion> + <InlineFunctionExpansion Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">OnlyExplicitInline</InlineFunctionExpansion> </ClCompile> <ClCompile Condition="$(Configuration) == 'Debug'"> <Optimization>Disabled</Optimization> |