From ddce5d5e3314b852a0000b2dcfbc9419ae9132a3 Mon Sep 17 00:00:00 2001 From: upstream svn Date: Wed, 14 Jul 2010 15:09:10 +0000 Subject: [PATCH] Don't hog CPU with compression Don't assume that computing power is cheaper than network bandwidth. The default compression level should give a good compromise between speed and efficiency. --- .svn-revision | 2 +- src/libs/ec/cpp/ECSocket.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.svn-revision b/.svn-revision index af149f36..5dae555d 100644 --- a/.svn-revision +++ b/.svn-revision @@ -1 +1 @@ -10248 +10249 diff --git a/src/libs/ec/cpp/ECSocket.cpp b/src/libs/ec/cpp/ECSocket.cpp index 4f3de281..cfcaa585 100644 --- a/src/libs/ec/cpp/ECSocket.cpp +++ b/src/libs/ec/cpp/ECSocket.cpp @@ -35,7 +35,7 @@ using namespace std; #include "../../../Logger.h" #include // Needed for CFormat -#define EC_COMPRESSION_LEVEL Z_BEST_COMPRESSION +#define EC_COMPRESSION_LEVEL Z_DEFAULT_COMPRESSION #define EC_MAX_UNCOMPRESSED 1024 #ifndef __GNUC__ -- 2.11.4.GIT