Do not flush the outgoing data to improve performance

This commit is contained in:
timvisee
2018-03-22 18:18:45 +01:00
parent f11bc8cf00
commit 024ec7974d

View File

@@ -92,8 +92,8 @@ impl Client {
// TODO: only flush each 100 pixels?
// TODO: make flushing configurable?
// TODO: make buffer size configurable?
self.stream.flush()
.expect("failed to flush write buffer to server");
// self.stream.flush()
// .expect("failed to flush write buffer to server");
// Everything seems to be ok
Ok(())