Skip to content

Commit 6cfbc7d

Browse files
Enable UseSizeOptimizedLinq by default on native AOT (#113214)
The motivation is: * This has been enabled by default on mobile platforms for several releases and it wasn't a source of issues * It is easy to opt out of it. (That cannot be said about mobile platforms in the past that hardcoded it at repo build). * Doesn't have measurable throughput impact on any ASP.NET scenarios we measure perf of. * It is a meaningful size saving (seen 5+%).
1 parent 890de13 commit 6cfbc7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ The .NET Foundation licenses this file to you under the MIT license.
3838
<EventSourceSupport Condition="$(EventSourceSupport) == ''">false</EventSourceSupport>
3939
<UseWindowsThreadPool Condition="'$(UseWindowsThreadPool)' == '' and '$(_targetOS)' == 'win'">true</UseWindowsThreadPool>
4040
<DynamicCodeSupport Condition="'$(DynamicCodeSupport)' == ''">false</DynamicCodeSupport>
41+
<UseSizeOptimizedLinq Condition="'$(UseSizeOptimizedLinq)' == ''">true</UseSizeOptimizedLinq>
4142
</PropertyGroup>
4243

4344
<!-- Configure LINQ expressions -->

0 commit comments

Comments
 (0)