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: only flush each 100 pixels?
// TODO: make flushing configurable? // TODO: make flushing configurable?
// TODO: make buffer size configurable? // TODO: make buffer size configurable?
self.stream.flush() // self.stream.flush()
.expect("failed to flush write buffer to server"); // .expect("failed to flush write buffer to server");
// Everything seems to be ok // Everything seems to be ok
Ok(()) Ok(())