diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-05-10 10:50:55 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-05-10 10:50:55 +0200 |
| commit | 3ad57ea82389e52c72c310268bde8b8540fa408e (patch) | |
| tree | 614bec84bf139b31553b5a3e939bf592b1f1c517 /src/blind-flip.c | |
| parent | Fix typo (diff) | |
| download | blind-3ad57ea82389e52c72c310268bde8b8540fa408e.tar.gz blind-3ad57ea82389e52c72c310268bde8b8540fa408e.tar.bz2 blind-3ad57ea82389e52c72c310268bde8b8540fa408e.tar.xz | |
blind-flip is optimal
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | src/blind-flip.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |
