* Factor out large generic additions in System.Linq
New generic types in System.Linq are causing significant size-on-disk increases in AOT builds. This change addresses some of them:
- The many implementations of IPartition and IIListProvider are causing significant binary size increases for AOT. I've factored out the majority of those large changes to only be used in a netcoreapp build, not in a uap build. There are still code paths that test whether an object is IPartition or IIListProvider, but there are no types now in the UAP build that implement them.
- As part of this, I replaced several places where `EmptyPartition<TResult>.Instance` was being used directly to implement an `IEnumerable<T>`, changed them to use `Enumerable.Empty<T>`, and then changed `Enumerable.Empty<T>` so that on netcoreapp it returns `EmptyPartition<TResult>.Instance`, and on uap it returns `Array.Empty<T>`. This also means now that code paths lighting-up on partitions will also light-up on `Enumerable.Empty<T>`. It also means that I changed the empty partition's `IEnumerator.Reset` method to be a nop instead of throwing, to match the same behavior as array's `IEnumerator.Reset`.
- LargeArrayBuilder uses T[][], which introduces lots of new array types and corresponding interface instantiations, helper types, etc. I've specialized LargeArrayBuilder in the UAP build to just be a thin wrapper around ArrayBuilder; we still end up with unnecessary instantiations of LargeArrayBuilder, but they're relatively small, and it saves everything to do with those T[][] instantiations.
* Rename files from netcoreapp/uap to SpeedOpt/SizeOpt
* Fix tests for Reset-becoming-nop change
Commit migrated from https://github.com/dotnet/corefx/commit/143df51926f2ad397fef9c9ca7ede88e2721e801
* added project for performance tests
* added performance tests for GroupJoin and Join creation and enumeration
* cleaned up Join/GroupJoin perf tests
* added GroupBy perf tests for comparison purposes
* added perf test for Join when left source is OrdinalIndexState.Shuffled
* modified Join/GroupJoin/GroupBy perf tests to get a better profile for different left/right/group sizes
* added GroupBy EnumerateGroup perf tests
* added Join perf test for Shuffled left and unordered right
* added larger right element list sizes to perf tests to GroupJoin with ordered right and Join with ordered left and ordered right
* wrapping right stream of joins to enable preserving order (needed to fix issue dotnet/corefx#1155)
* Factored out building rightHashLookup to eventually move to a separate class to allow for ordering of elements
* refactored out the list of right values for hash joins
* added comments and changed type param names on HashLookupValueList
* Added HashLookupBuilder
* added comments and changed type param names on HashLookupBuilder
* factoring out HashLookupBuilder as an abstract base class and an implementation for use with Join operations
* modifying JoinQueryOperator to use the HashJoinQueryOperatorEnumerator constructor taking a HashLookupBuilder
* added HashJoinHashLookup to wrap calls to TryGetValue of HashLookup in HashJoinQueryOperatorEnumerator
* added a Head accessor to HashLookupValueList to allow for adding to the GroupJoin result list
* moved JoinHashLookup inside JoinHashLookupBuilder as it should only be used there
* added GroupJoinHashLookupBuilder for unordered group join
* refactored common HashLookup building code to base class
* removed old HashJoinQueryOperatorEnumerator constructor and unnecessary handling of multiple types of resultSelectors
* handling GroupJoin with an ordered right (inner) ParallelQuery
* Revert "added a Head accessor to HashLookupValueList to allow for adding to the GroupJoin result list"
ended up not using the Head accessor
This reverts commit dotnet/corefx@26eb5014fb.
* preparing to allow for a combined key when both left and right sources are ordered
* added handling for a right key on GroupJoins when both the left and right sources are ordered
* added PairOutputKeyBuilder for when both left and right sources of a Join/GroupJoin are ordered
* handling GroupJoins when both left and right sources ordered
* added tests that include collisions in the left ordering to make sure the right key ordering is affecting the output ordering
* handling parallel Join with an ordered right source
* reverting some of the original probe phase of HashJoinQueryOperatorEnumerator.MoveNext source to have a closer memory use/copy profile especially in unordered cases
* moved HashJoin helper classes to the files where they are used
* added SkipOnTargetFramework netfx to tests that assume right ordering is preserved
* added information to SkipOnTargetFramework as per review
* fix for Join so that ambiguous ordering of left elements does not result in mixed output (see https://github.com/dotnet/corefx/pull/27930#issuecomment-372007875 and following for examples)
* refactored common code of left ordering collision tests
* moved left collision test helper class
* add Join tests with non-uniquely ordered lefts and unordered rights (to illustrate behavior change described in https://github.com/dotnet/corefx/pull/27930#issuecomment-372084741)
* changed OrdinalIndexState.Increasing comment to remove ambiguity (it does not allow equal indices). This is an important distinction for Join, SelectMany, Skip/Take, etc.
* changed OrderedGroupByGrouping.DoneAdding to use Array.Sort to improve performance
* removed unnecessary member/comparer from OrderedGroupByGrouping
* changed OrderedGroupByGrouping to use ListChunk for accumulating data
* added the Service to System.Linq.Parallel.Tests.csproj that visual studio so desperately wants
Commit migrated from https://github.com/dotnet/corefx/commit/28121c077ec06124c2cec82e10704c9f2a05977c
Three categories:
* Disabled on issues that have been resolved
* Disabled with a message that is not true anymore
* Disabled without explanation (that's the Linq.Parallel test - Linq.Parallel tests are great stress tests, so I want to either see them running, or have a bug that someone is looking at)
Commit migrated from https://github.com/dotnet/corefx/commit/cd3dada3c97acc82bbbb6c73728205e8f662ced6
- Avoid using Enumerable.Append, which isn't available in desktop
- Suppress tests on desktop where the test is verifying a bug fix in core
- Allow some variance to account for different floating point support in desktop vs core
Commit migrated from https://github.com/dotnet/corefx/commit/ed3ec8b0681211e82036a294c7857d77a4edabf2
* Move a System.Collections test
Just moves the test to a more derived test class. In its current location, it's unnecessarily getting run multiple times but without any variation.
* 20170306 - Audit some active issues/v-lijiay
* Remove Active Issue 16750 and change performancetest to [Benchmark], remove the link in Fact when it has activeissue.
* The type or namespace name 'BenchmarkAttribute' could not be found, add using Microsoft.Xunit.Performance;
* 20170306 - Audit some active issues/v-lijiay
* Remove Active Issue 16750 and change performancetest to [Benchmark], remove the link in Fact when it has activeissue.
* The type or namespace name 'BenchmarkAttribute' could not be found, add using Microsoft.Xunit.Performance;
Commit migrated from https://github.com/dotnet/corefx/commit/31e2eb9779b8ec07c3363ed52c32e1838c4eb4de
* Marking code as unchecked (pt 9)
Additional unchecked for new test code and missed cases in BitConverter
* Marking code as unchecked (pt 9a)
Added unchecked to two casts in ManagedWebSocket
* CI test failure fixes
Overflow exceptions in:
- Windows NT Debug dotnet/corefx#3458
- OS X Debug dotnet/corefx#3357
* CI test failure fixes
Overflow exceptions in:
- Windows 7 Debug Outerloop (build 8)
- OS X Debug Outerloop (build 45)
* CI test failure fixes
Fixed overflow exception from OS X Debug Outerloop (build 46)
Commit migrated from https://github.com/dotnet/corefx/commit/7f6ac8bf97a84666ed3e7ef6b77c1a9470ae78c8
* Enable compiling the test projects against the configuration
The tests were compiled using the vertical configuration and not the best configuration picked from Configurations.props. this change is fix that and have all test projects configured accordingly.
This change ensuring netcoreapp runs successfully and we'll have another rounds later for other configurations like netfx, UAP...etc.
* Fix openssl test project on Linux distros
* Update the project configurations
* Update VS solution files
* update solution files
Commit migrated from https://github.com/dotnet/corefx/commit/e79912f8b77bc22abfd85e94b74c06e5d99e8381
* [WIP]Created src\tests.proj which is mostly building all tests
* Convert test project .builds to Configuration.props
* Fix test paths in targetingpack.props, move test-runtime.
* Move test-runtime under external.
* Rename RuntimeDir->RuntimePath in targetingpacks.props and
Xunit.Runtime.depproj.
* Remove test-runtime project.json from the SupplementalTestData list in
dir.targets.
* Remove XUnit.Runtime.depproj from tests.proj
* Convert test .builds files to Configuration.props.
* Revert "Convert test project .builds to Configuration.props"
This reverts commit dotnet/corefx@1efc4d9a02.
* Fix compilation error in System.Collections.Concurrent.Tests
* Fix condition in System.Collections ref project
* Fix two more Collections test project issues
* Add Configuration.props for System.Collections ref
* Fix TargetGroup conditions in System.Collections.Tests.csproj.
* Fix compilation problems with NameResoltion.Pal.Tests.
* Fix compilation errors in SqlClient Stress tests
* Fix IO.Compression.Performance tests compilation
* Fix compilation and configurations of System.Net.Http.Unit.Tests.csproj.
* Fix compilation issues in System.Private.Xml.Linq tests
* Disable XsltScenarios.Tests project, like it was before.
* Fix missing DefineConstants for System.Linq ref project.
* Fix compilation of System.Net.Primitives.Pal.Tests.csproj
* Fix compilation of System.Net.Primitives.UnitTests.Tests.csproj
* Fix compilation of System.Security.Cryptography.Cng.Tests.csproj.
* Fix compilation of System.Net.Primitives reference project
* Fix compilation of System.Net.Security ref project
* Fix compilation of SYstem.Net.Security.Tests.csproj
* Fix configuration of X509Certificates ref project
* Fix compilation errors in System.Net.Http.Unit.Tests.csproj
* Fix Common.Tests.csproj
* Fix System.Diagnostics.Debug.Tests.csproj
* Fix Microsoft.Win32.Registry.Tests.csproj
* Add runtime.native.System.Data.SqlClient.sni to external project
* Fix System.Diagnostics.TraceSource.Tests.csproj
* Fix System.IO.Compression.Performance.Tests.csproj
* Move supplemental test data into test-runtime/project.json
* Fix System.IO.FileSystem.Watcher.Tests.csproj
* Fix System.IO.FileSystem.Tests.csproj
* Fix System.IO.Pipes.AccessControl.Tests.csproj
* Fix System.IO.MemoryMappedFiles.Tests.csproj
* Fix System.IO.Pipes.Tests.csproj
* Fix System.Json.Tests.csproj
* Add missing supplemental test data for net security tests
* Fix resource names in System.Xml.XPath.XDocument.Tests.csproj
* Fix Assembly.Location test case
* Fix assembly loading paths in DefaultLoadContextTest.cs
* Fix issues in System.Runtime.Loader.Tests.csproj
* Fix RootNamespace in ResourceManager tests
* Mark OpenSSL tests as unsupported on Windows
* Fix RootNamespace in System.Xml.XPath.Tests.csproj
* Fix RootNamespace in System.Xml.XPath.XmlDocument.Tests.csproj
* Fix System.IO.Compression.Tests.csproj
* Add missing Configurations.props files for System.Net projects
* Fix compilation issues in WinHttpHandler tests
* Add fixes and a workaround for Linq.Expressions tests
* Add workaround for System.Runtime.Tests
* Use extension methods explicitly in Ref.Emit tests
* Hook up test projects into build
* Fix build configuration of Crypto.Primitives for netcoreapp
* Enable VB tests outside Windows
* Enable Mail tests outside windows
* Don't run Unsafe tests outside windows
* Don't build Unsafe tests outside Windows
* Don't build WebServer project outside of Windows.
* Fix corerun path for Unix tests.
* Fix casing of 'Native' directory in NETCoreApp private pkgproj
* Remove runtime-specific stuff from Xunit.Runtime.depproj
* Move tests into a separate project ('tests.msbuild') which isn't built in build.proj
* Remove duplicate types from NameResolution.Pal tests
* Skip tests in a project if there is no compatible configuration.
* Include internal socket types only on Windows in NameResolution tests
* Manually fix S.R.InteropServices configurations
* Rename tests.msbuild -> tests.builds
* Manually fix System.Text.Encoding.Tests.csproj configuration
* Manually fix System.Threading.Tests configuration
* Manually clean up System.Runtime.Tests.csproj
* Fix System.IO.FileSystem.Tests configurations
* Manually fix System.Globalization.Tests configurations
* Manually fix System.IO.Pipes.Tests configurations
* Manually fix System.IO.Compression.Tests configurations
* Manually fix System.Runtime.Extensions.Tests configurations
* Manually fix System.IO.MemoryMappedFiles.Tests configurations
* Manually fix S.Diagnostics.Process.Tests configurations
* Manually fix System.ComponentModel.TypeConverter.Tests configurations
* Misc PR feedback.
* Use HostRunnerName instead of HostRunner in Process tests
* Fix configurations for S.ServiceProcess.ServiceController.Tests
* Revert to using ConfigurationErrorMsg to check if tests should be skipped.
Configuration still defaults to 'Debug' even if there is no valid configuration.
Commit migrated from https://github.com/dotnet/corefx/commit/2c0352ec38f9f6f602ae819f0cafb02c1908f137