Updated compression to LZ4 as its better in performance

This commit is contained in:
Smita Kulkarni 2023-11-09 10:10:22 +01:00
parent e9542e4153
commit 9a9efdcf7d
2 changed files with 2 additions and 2 deletions

View File

@ -491,7 +491,7 @@ void ZooKeeper::connect(
if (use_compression) if (use_compression)
{ {
compressed_in.emplace(*in); compressed_in.emplace(*in);
compressed_out.emplace(*out, CompressionCodecFactory::instance().get("ZSTD", {})); compressed_out.emplace(*out, CompressionCodecFactory::instance().get("LZ4", {}));
} }
original_index = static_cast<Int8>(node.original_index); original_index = static_cast<Int8>(node.original_index);

View File

@ -394,7 +394,7 @@ void KeeperTCPHandler::runImpl()
if (use_compression) if (use_compression)
{ {
compressed_in.emplace(*in); compressed_in.emplace(*in);
compressed_out.emplace(*out, CompressionCodecFactory::instance().get("ZSTD",{})); compressed_out.emplace(*out, CompressionCodecFactory::instance().get("LZ4",{}));
} }
auto response_fd = poll_wrapper->getResponseFD(); auto response_fd = poll_wrapper->getResponseFD();