[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Synchronize less frequently when compressing descriptors
commit 8ecfcf712c4e673687e4904e0a73e5c70b1a7eeb
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Wed May 7 10:27:30 2014 -0400
Synchronize less frequently when compressing descriptors
This may improve our compression ratios.
fix for 11787
---
src/common/torgzip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/torgzip.c b/src/common/torgzip.c
index 15451ee..239cab9 100644
--- a/src/common/torgzip.c
+++ b/src/common/torgzip.c
@@ -472,7 +472,7 @@ tor_zlib_process(tor_zlib_state_t *state,
state->stream.avail_out = (unsigned int)*out_len;
if (state->compress) {
- err = deflate(&state->stream, finish ? Z_FINISH : Z_SYNC_FLUSH);
+ err = deflate(&state->stream, finish ? Z_FINISH : Z_NO_FLUSH);
} else {
err = inflate(&state->stream, finish ? Z_FINISH : Z_SYNC_FLUSH);
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits