Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Performance] Improve UseValidPlatformString (CA1418) performance#6867

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

Merged
buyaa-n merged 1 commit intodotnet:mainfromYoussef1313:valid-platform-perf
Sep 12, 2023

Conversation

@Youssef1313
Copy link
Member

No description provided.

@Youssef1313Youssef1313 requested a review froma team as acode ownerAugust 19, 2023 19:31
}
}

publicstaticIEnumerable<AttributeData>GetAttributes(thisISymbolsymbol,INamedTypeSymbol?attributeTypeToMatch1,INamedTypeSymbol?attributeTypeToMatch2)
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Note: This is called for every named type, method, property, field, and event in the compilation. So using theparams overload was likely inefficient.

An alternative is that the analyzer would pre-allocate a single array at compilation start, but I went with these overloads so that other analyzers could benefit as well.

@codecov
Copy link

codecovbot commentedAug 19, 2023

Codecov Report

Merging#6867 (7e193b4) intomain (3587540) willdecrease coverage by0.01%.
The diff coverage is100.00%.

Additional details and impacted files
@@            Coverage Diff             @@##             main    #6867      +/-   ##==========================================- Coverage   96.39%   96.39%   -0.01%==========================================  Files        1403     1403                Lines      330977   330996      +19       Branches    10890    10894       +4     ==========================================+ Hits       319055   319072      +17- Misses       9188     9191       +3+ Partials     2734     2733       -1

Copy link

@buyaa-nbuyaa-n left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@buyaa-nbuyaa-n merged commit837c22a intodotnet:mainSep 12, 2023
@Youssef1313Youssef1313 deleted the valid-platform-perf branchSeptember 13, 2023 05:13
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@buyaa-nbuyaa-nbuyaa-n approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

@buyaa-nbuyaa-n

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Youssef1313@buyaa-n

[8]ページ先頭

©2009-2025 Movatter.jp