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

Revise UnnamedOptionsManager to avoid allocation in ctor#49883

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
davidfowl merged 1 commit intodotnet:mainfromstephentoub:reviseunnamedoptions
Mar 19, 2021

Conversation

@stephentoub
Copy link
Member

Follow-up to#49852 (comment)

MethodMeanAllocated
CreateMain28.281 ns184 B
CreatePR4.504 ns40 B
CreateAndValueMain90.796 ns376 B
CreateAndValuePR69.512 ns256 B

cc:@davidfowl,@eerhardt

@ghost
Copy link

Tagging subscribers to this area:@maryamariyan
See info in area-owners.md if you want to be subscribed.

Issue Details

Follow-up to#49852 (comment)

MethodMeanAllocated
CreateMain28.281 ns184 B
CreatePR4.504 ns40 B
CreateAndValueMain90.796 ns376 B
CreateAndValuePR69.512 ns256 B

cc:@davidfowl,@eerhardt

Author:stephentoub
Assignees:-
Labels:

area-Extensions-Options

Milestone:-

@stephentoubstephentoub mentioned this pull requestMar 19, 2021
Copy link
Member

@eerhardteerhardt left a comment

Choose a reason for hiding this comment

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

:shipit:

}

publicTOptionsValue=>_lazy.Value;
lock(_syncObj??Interlocked.CompareExchange(ref_syncObj,newobject(),null)??_syncObj)
Copy link
Member

Choose a reason for hiding this comment

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

I was trying to write this pattern earlier. Very cool 😃

stephentoub reacted with thumbs up emoji
@davidfowldavidfowl merged commitfee6a7b intodotnet:mainMar 19, 2021
@stephentoubstephentoub deleted the reviseunnamedoptions branchMarch 19, 2021 19:59
@stephentoubstephentoub added the tenet-performancePerformance related issue labelMar 19, 2021
@ghostghost locked asresolvedand limited conversation to collaboratorsApr 18, 2021
@karelzkarelz added this to the6.0.0 milestoneMay 20, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@davidfowldavidfowldavidfowl approved these changes

@eerhardteerhardteerhardt approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

6.0.0

Development

Successfully merging this pull request may close these issues.

4 participants

@stephentoub@davidfowl@eerhardt@karelz

[8]ページ先頭

©2009-2025 Movatter.jp