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

Lockless socket output, lower allocs #315

Closed
wants to merge 6 commits into from

Conversation

benaadams
Copy link
Contributor

Inter dependent items from PR #309 as individual commits

No locks
Use MemoryPool2
Reduced libuv thread activation
Improved write buffering
Improved buffer to IO timing
No alloc in callback paths
Precompute standard chunk bytes
Write Ascii header data to scratch buffer
Use SocketOutput's buffering rather than Memory and MemoryTextWriter
Remove Memory and MemoryTextWriter
Post work ready at end of headers
New buffering and buffer stealing allows more data to be added before
libuv wakes up and puts on wire
@benaadams
Copy link
Contributor Author

Closing for now until have some numbers; need to improve latency...

@benaadams benaadams closed this Nov 3, 2015
@benaadams benaadams deleted the lockless-socket-output 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.

2 participants