forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove a couple allocations from Socket.Connect/Bind/etc. (dotnet#32271)
The Socket implementation calls the internal SnapshotAndSerialize method on a bunch of code paths, like Connect, Bind, etc. The "snapshot" part of the name comes from the time of CAS, and the implementation needed to clone the instance to make security decisions. We no longer make such decisions, but we're still cloning the objects. We can stop doing that.
- Loading branch information
1 parent
0d08b02
commit 8f546c9
Showing
2 changed files
with
29 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters