netserializer icon indicating copy to clipboard operation
netserializer copied to clipboard

Support for async

Open asdfgasdfsafgsdfa opened this issue 7 years ago • 1 comments

When reading and writing to network connections (using NetworkStream) we often want to use async as it scales a lot better than having one thread for every client.

Assuming we'd want to read directly from a NetworkStream class using NetSerializer it would be essential to have async versions of Deserialize / Serialize (which internally use the ReadAsync and WriteAsync methods of the given stream).

Is that planned? If not, could you give me a rough outline what the best way to add it would be? (like what to keep in mind) @tomba

asdfgasdfsafgsdfa avatar Apr 10 '17 23:04 asdfgasdfsafgsdfa

I don't exactly know what it would need, but I have a hunch that it would slow down NetSerializer quite a lot. But feel free to try and prove me wrong =).

tomba avatar Apr 17 '17 11:04 tomba