← Commit list

919bc9d43

Denys Vlasenko
Denys Vlasenko
2018-01-31
SUCCESS Duration: 145s

Subject

gzip: flush output buffer after stored blocks only if necessary

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

archival/gzip.c+2 -1
@@ -634,7 +634,8 @@ static void copy_block(char *buf, unsigned len, int header)
put_8bit(*buf++);
}
/* The above can 32-bit misalign outbuf */
- flush_outbuf_if_32bit_optimized();
+ if (G1.outcnt & 3) /* syscalls are expensive, is it really misaligned? */
+ flush_outbuf_if_32bit_optimized();
}