Skip to content

Commit

Permalink
Disable Partial NGEN for assemblies that are not trained
Browse files Browse the repository at this point in the history
  • Loading branch information
tmat committed Feb 14, 2019
1 parent 40ffe9c commit b8bbc16
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<OutputType>Library</OutputType>
<RootNamespace>Microsoft.CodeAnalysis.Editor.CSharp</RootNamespace>
<TargetFramework>net472</TargetFramework>
<ApplyPartialNgenOptimization>true</ApplyPartialNgenOptimization>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\..\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<OutputType>Library</OutputType>
<RootNamespace>Microsoft.CodeAnalysis.Editor</RootNamespace>
<TargetFramework>net472</TargetFramework>
<ApplyPartialNgenOptimization>true</ApplyPartialNgenOptimization>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\..\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<OutputType>Library</OutputType>
<RootNamespace>Microsoft.CodeAnalysis</RootNamespace>
<TargetFramework>net472</TargetFramework>
<ApplyPartialNgenOptimization>true</ApplyPartialNgenOptimization>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<_NoOptimizationData Include="$(ArtifactsBinDir)csi\$(Configuration)\net472\System.Buffers.dll"/>
<_NoOptimizationData Include="$(ArtifactsBinDir)csi\$(Configuration)\net472\System.Memory.dll"/>
<_NoOptimizationData Include="$(ArtifactsBinDir)csi\$(Configuration)\net472\System.Numerics.Vectors.dll"/>
<_NoOptimizationData Include="$(ArtifactsBinDir)csi\$(Configuration)\net472\System.Text.Encoding.CodePages.dll"/>

<!--
System.Numerics.Vector requires JIT, since its size is dynamic and based on the underlying CPU support.
Expand Down
3 changes: 2 additions & 1 deletion src/Setup/DevDivInsertionFiles/DevDivInsertionFiles.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
<ExpectedDependency Include="System.Reflection.Metadata" OptimizeAssemblies="lib/netstandard2.0/System.Reflection.Metadata.dll" UnsignAssemblies="lib/netstandard1.1/System.Reflection.Metadata.dll" />
<ExpectedDependency Include="System.Memory"/>
<ExpectedDependency Include="System.Runtime.CompilerServices.Unsafe" OptimizeAssemblies="lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll" />
<ExpectedDependency Include="System.Text.Encoding.CodePages" OptimizeAssemblies="lib/netstandard2.0/System.Text.Encoding.CodePages.dll" />
<!-- We do not have a training scenario that covers lib/netstandard2.0/System.Text.Encoding.CodePages.dll -->
<ExpectedDependency Include="System.Text.Encoding.CodePages" />
<ExpectedDependency Include="System.Numerics.Vectors"/>

<!--
Expand Down

0 comments on commit b8bbc16

Please sign in to comment.