Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use segmented arrays for VirtualChar storage #59503

Merged
merged 1 commit into from
Feb 23, 2022

Conversation

sharwell
Copy link
Member

@sharwell sharwell commented Feb 11, 2022

Fixes AB#1460018

@@ -862,5 +863,33 @@ internal static bool IsSorted<T>(this ImmutableArray<T> array, IComparer<T> comp

return ~low;
}

internal static int BinarySearch<TElement, TValue>(this ImmutableSegmentedList<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public? up to you but that's my pref.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

➡️ Will keep like this only because it matches the one above

Copy link
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiler change LGTM

@sharwell sharwell merged commit 6a2daff into dotnet:main Feb 23, 2022
@sharwell sharwell deleted the loh-virtualchar branch February 23, 2022 18:45
@ghost ghost added this to the Next milestone Feb 23, 2022
@RikkiGibson RikkiGibson modified the milestones: Next, 17.2.P2 Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants