Skip to content

Conversation

xtqqczze
Copy link
Contributor

@xtqqczze xtqqczze commented Jul 21, 2024

  • Write bytes in order as the JIT can now elide the bounds check.
  • Avoid use of this constructor (saves an array allocation).

@ghost ghost added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 21, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jul 21, 2024
@Wraith2
Copy link
Contributor

Wraith2 commented Jul 22, 2024

Is there any evidence that this is an improvement?

@xtqqczze
Copy link
Contributor Author

@MihuBot

@xtqqczze xtqqczze changed the title Copy byte array as block in Guid ctor Guid(Int32, Int16, Int16, Byte[]) changes Jul 22, 2024
@stephentoub
Copy link
Member

What is the purpose of this PR at this point?

@xtqqczze
Copy link
Contributor Author

Reverted the unsafe changes in favour of a minimal PR.

@xtqqczze xtqqczze marked this pull request as ready for review July 22, 2024 17:11
@xtqqczze
Copy link
Contributor Author

What is the purpose of this PR at this point?

Updated the description.

@xtqqczze
Copy link
Contributor Author

@MihuBot

@xtqqczze
Copy link
Contributor Author

@MihuBot

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

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

Thanks.

@stephentoub stephentoub merged commit ea2ffbd into dotnet:main Jul 22, 2024
@xtqqczze
Copy link
Contributor Author

@MihuBot

@github-actions github-actions bot locked and limited conversation to collaborators Aug 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community-contribution Indicates that the PR has been added by a community member needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants