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

Remove allocations from IsCustomAttributeDefined#44694

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
jkotas merged 1 commit intodotnet:masterfrombenaadams:IsCustomAttributeDefined
Nov 15, 2020

Conversation

@benaadams
Copy link
Member

@benaadamsbenaadams commentedNov 15, 2020
edited
Loading

Rather than going viaCustomAttributeData.GetCustomAttributeRecords and creating an array, iterate theattributeTokens directly.

Also has the advantage of early out rather than iterating every element to create the array then iterating it again for the test.

Startup allocations for ASP.NET MVC app

Before

image

After

image

Contributes to#44598

/cc@jkotas@stephentoub

NickCraver, royvou, antoniofreire, ShreyasJejurkar, tlil, xsoheilalizadeh, Redouane64, paule96, paulomorgado, henkmollema, and pentp reacted with hooray emoji
@Dotnet-GitSync-Bot
Copy link
Collaborator

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly onearea label.

Copy link
Member

@jkotasjkotas left a comment

Choose a reason for hiding this comment

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

Thank you

@jkotasjkotas merged commit25260d1 intodotnet:masterNov 15, 2020
@benaadamsbenaadams deleted the IsCustomAttributeDefined branchNovember 15, 2020 03:41
@ghostghost locked asresolvedand limited conversation to collaboratorsDec 15, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@jkotasjkotasjkotas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@benaadams@Dotnet-GitSync-Bot@jkotas

[8]ページ先頭

©2009-2025 Movatter.jp