Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Allocate less in GetIPEndPoint #1004

Merged
merged 1 commit into from
Jul 21, 2016
Merged

Allocate less in GetIPEndPoint #1004

merged 1 commit into from
Jul 21, 2016

Conversation

pakrym
Copy link
Contributor

@pakrym pakrym commented Jul 21, 2016

Trim 2 byte arrays creation for IPv6 addresses.

@pakrym
Copy link
Contributor Author

pakrym commented Jul 21, 2016

cc @davidfowl @halter73 @CesarBS

@pakrym
Copy link
Contributor Author

pakrym commented Jul 21, 2016

This happens per connection, so might not have hight impact.

@halter73
Copy link
Member

:shipit:

{
bytes[i] = bytes1[i];
bytes[i + 8] = bytes2[i];
fixed (byte* b = bytes) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: { in new line

@pakrym pakrym force-pushed the pakrym/less-aloc branch from 87b2e3d to 331fe94 Compare July 21, 2016 18:55
@cesarblum
Copy link
Contributor

🚢

@pakrym pakrym merged commit 7b7e288 into dev Jul 21, 2016
@cesarblum cesarblum deleted the pakrym/less-aloc branch July 21, 2016 19:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants