Uh oh!
There was an error while loading. Please reload this page.
Apply optimizations and fixes to Enumerable.Take(Range) - #48634
Conversation
ghost
commented
Feb 23, 2021
Tagging subscribers to this area: @eiriktsarpalis Issue DetailsMakes the following changes to the new
|
eiriktsarpalis
commented
Feb 23, 2021
cc @Dixin |
8a0a64f to
e7d5a43Compareeiriktsarpalis
commented
Feb 25, 2021
I've been investigating the seemingly unrelated test failure affecting mono debug builds. The issue is caused by xunit's generic test parameter resolution logic: the removal of the private I have pushed a commit to demonstrate this and to further show that the failures are not due to a regression introduced by this PR, but rather a bug of xunit running over mono debug builds. |
work around an xunit issue binding inputs with nested generics to generic theories.
This reverts commit 6d160f618c54abb77c602840a5ecd359477468d4.
work around an xunit issue binding inputs with nested generics to generic theories.
This reverts commit d7b11dab001b82cc533449c7f23e2bb90ec2515d.
7c73ea3 to
0c06999Compareeiriktsarpalis
commented
Feb 26, 2021
Hi @stephentoub@layomia, this is ready for review, would you be able to take a look? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Makes the following changes to the new
Enumerable.Take(Range)implementation:SizeOptandSpeedOptimplementations for non-fromEndranges.fromEndranges usingEnumerable.TryGetNonEnumeratedCountto obtain the source count.TakeLastandSkipLastimplementations.TakeLastandSkipLastin terms of theTake(Range)implementation.Fix#48631.