- Notifications
You must be signed in to change notification settings - Fork5.2k
Replace OPTIMIZE_FOR_SIZE with feature switch#111743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from7 commits
5412071eb3fe5c4f9fad14636abae31d983b869eea0c8ae7477f263660297deda36781File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -143,7 +143,12 @@ public static int SlowRuntimeTimeoutModifier | ||
| public static bool IsStartingProcessesSupported => !IsiOS && !IstvOS; | ||
| public static bool IsSpeedOptimized => !IsSizeOptimized; | ||
| public static bool IsSizeOptimized => s_linqIsSizeOptimized.Value; | ||
MichalStrehovsky marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| private static readonly Lazy<bool> s_linqIsSizeOptimized = new Lazy<bool>(IsLinqSizeOptimized); | ||
| private static bool IsLinqSizeOptimized() | ||
| { | ||
| return (bool)typeof(Enumerable).GetMethod("get_IsSizeOptimized", BindingFlags.NonPublic | BindingFlags.Static).Invoke(null, Array.Empty<object>()); | ||
MichalStrehovsky marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| } | ||
| public static bool IsBrowserDomSupported => IsEnvironmentVariableTrue("IsBrowserDomSupported"); | ||
| public static bool IsBrowserDomSupportedOrNotBrowser => IsNotBrowser || IsBrowserDomSupported; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,16 @@ | ||
| <ProjectSdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <TargetFramework>$(NetCoreAppCurrent)</TargetFramework> | ||
MichalStrehovsky marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| <UseCompilerGeneratedDocXmlFile>false</UseCompilerGeneratedDocXmlFile> | ||
| </PropertyGroup> | ||
Member
| ||
| <ItemGroup> | ||
| <CompileInclude="System\Linq\Skip.SizeOpt.cs" /> | ||
| <CompileInclude="System\Linq\Take.SizeOpt.cs" /> | ||
| </ItemGroup> | ||
| <ItemGroup> | ||
MichalStrehovsky marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| <CompileInclude="System\Linq\AppendPrepend.SpeedOpt.cs" /> | ||
| <CompileInclude="System\Linq\Cast.SpeedOpt.cs" /> | ||
| <CompileInclude="System\Linq\Concat.SpeedOpt.cs" /> | ||
Uh oh!
There was an error while loading.Please reload this page.