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

SocketOutput Allocation Reductions #466

Merged
merged 4 commits into from
Dec 13, 2015
Merged

Conversation

benaadams
Copy link
Contributor

Continuation of "Resuse writes, initalize queues" #363

Resolves #165 Pool UvWriteReq objects
Resolves #289 High Allocator DoWriteIfNeeded
Resolves #290 High Allocator SocketOutput.Write

@halter73
Copy link
Member

I'm OK with the separate pool for WriteContexts. Should we close #363 and continue our discussion here?

@@ -492,7 +536,12 @@ public void DoShutdownIfNeeded()
/// </summary>
public void DoDisconnectIfNeeded()
{
if (SocketDisconnect == false || Self._socket.IsClosed)
if (SocketDisconnect == false)
Copy link
Member

Choose a reason for hiding this comment

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

I think this can be changed back.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed

@benaadams
Copy link
Contributor Author

Closed the other issue, made the changes, rebased

benaadams and others added 4 commits December 10, 2015 20:31
Without waiting for next libuv pass

Fix for potential regression in aspnet#363 due to bug fix.
- This allows all connections accepted by the same thread to share a pool
@benaadams
Copy link
Contributor Author

Following on...

Can pool the WriteContexts per thread rather than per connection "Pool WriteContext per thread" #469

@halter73 halter73 merged commit 5665eba into aspnet:dev Dec 13, 2015
@halter73
Copy link
Member

Done! Thanks for your patience @benaadams.

@benaadams
Copy link
Contributor Author

👍

@benaadams benaadams deleted the pool-writecontexts branch May 10, 2016 11:00
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.

3 participants