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 Span<T> on all platforms that support it #6130

Merged
merged 1 commit into from Feb 9, 2021

Conversation

ladipro
Copy link
Member

@ladipro ladipro commented Feb 8, 2021

Context

FEATURE_SPAN is defined only when building the .NET Core flavor of MSBuild but the feature has been supported everywhere but downlevel .NET Framework for some time.

Changes Made

Removed FEATURE_SPAN together with all code conditionally compiled when the flag was not defined. Wrapped the code in #if !CLR2COMPATIBILITY instead as it's not used when building MSBuildTaskHost.

Testing

Existing unit tests. There might be some very minor perf win on non-Windows OSes where we were previously using strings (i.e. Mono).

Notes

This is code cleanup.

Copy link
Member

@Forgind Forgind left a comment

Choose a reason for hiding this comment

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

The only one I'd be at all worried about is net4, but that's probably ungrounded.

Copy link
Member

@benvillalobos benvillalobos left a comment

Choose a reason for hiding this comment

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

LGTM

@Forgind Forgind added the merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now. label Feb 8, 2021
@Forgind Forgind merged commit 31a98dc into dotnet:master Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants