shithub: riscv

Download patch

ref: 9d9da40fd2320e36b4fa2e0060783603b2f15062
parent: 1ae5fc01a6e9c6fb1a1befd4c60653a6af10a9e0
author: Ori Bernstein <[email protected]>
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);
 	}
 }