talostrading / sonic

Sonic is a Go library for network and I/O programming that provides developers with a consistent asynchronous model, with a focus on achieving the lowest possible latency and jitter in Go.
MIT License
676 stars 16 forks source link

Zero-copy writing for websocket #101

Open sergiu128 opened 1 year ago

sergiu128 commented 1 year ago

This is not well-defined yet. What we want is to essentially have the websocket frame already encoded in dst from codec.go. What we have today is a websocket.Frame with its own buffers that then get copied to a destination buffer.