commit 3ad57ea82389e52c72c310268bde8b8540fa408e
Author: Mattias Andrée <[email protected]>
AuthorDate: Wed May 10 10:50:55 2017 +0200
Commit: Mattias Andrée <[email protected]>
CommitDate: Wed May 10 10:50:55 2017 +0200
blind-flip is optimal
Signed-off-by: Mattias Andrée <[email protected]>
diff --git a/src/blind-flip.c b/src/blind-flip.c
index 18914ae..71f30c4 100644
--- a/src/blind-flip.c
+++ b/src/blind-flip.c
@@ -27,6 +27,7 @@ main(int argc, char *argv[])
while (eread_frame(&stream, buf, n))
for (ptr = n; ptr;)
ewriteall(STDOUT_FILENO, buf + (ptr -= rown), rown,
"<stdout>");
+ /* ewriteall is faster than writev(3) and vmsplice(3) */
free(buf);
return 0;