MitchellMarinoDev / carrier-pigeon

A rusty networking library for games.
Other
12 stars 2 forks source link

Switch from an async model to a non-blocking sync model. #2

Closed MitchellMarinoDev closed 2 years ago

MitchellMarinoDev commented 2 years ago

Switch from using tokio, to using the standard library's networking types (TcpStream, UdpSocket) set to non-blocking mode. This provides a number of benefits:

Potential downsides:

MitchellMarinoDev commented 2 years ago

Note: Benchmarks preformed better on sync branch