git: 9front

Download patch

ref: 3b104c7f3d7e6349000a3e90d03d39f62c466ac7
parent: f3f4c58027ec7cfeef3e8ce2bb72dfb054a009fd
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Sep 20 13:46:34 EDT 2023

diff: don't flush on every line

there's no reason to use bio if you flush every time.

--- a/sys/src/cmd/diff/diffio.c
+++ b/sys/src/cmd/diff/diffio.c
@@ -229,7 +229,6 @@
 	while (a++ <= b) {
 		readline(bp, buf);
 		Bprint(&stdout, "%s%s\n", s, buf);
-		Bflush(&stdout);
 	}
 }
 
--