lemunozm / message-io

Fast and easy-to-use event-driven network library.
Apache License 2.0
1.11k stars 74 forks source link

Windows Websocket latency optimizatión #74

Open lemunozm opened 3 years ago

lemunozm commented 3 years ago

There is an existing optimization for WebSocket here: https://github.com/lemunozm/message-io/pull/73 in order to avoid an extra call to read_message() from tungstenite. This optimization means a reduction of 40% in the latency.

It works fine in Linux and MacOS but in Windows seems like after the peek() the stream is no longer waked from the poll.

Search the way to get it working in Windows if possible