From bdb5ea592ba57c5bd495b8701f58c5618b039555 Mon Sep 17 00:00:00 2001
From: librelois <c@elo.tf>
Date: Tue, 18 May 2021 13:38:36 +0200
Subject: [PATCH] perf(indexer): change compression level of chunks: 6 -> 3

---
 indexer/src/blocks_chunks.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indexer/src/blocks_chunks.rs b/indexer/src/blocks_chunks.rs
index 74bf1cd..f58ddfe 100644
--- a/indexer/src/blocks_chunks.rs
+++ b/indexer/src/blocks_chunks.rs
@@ -36,7 +36,7 @@ pub(super) fn apply_block_blocks_chunk<B: Backend>(
             .map_err(|e| KvError::DeserError(e.into()))?;
         let chunk_hash = Hash::compute_blake3(current_chunk_bin.as_ref());
 
-        let compressed_chunk = miniz_oxide::deflate::compress_to_vec(current_chunk_bin.as_ref(), 6);
+        let compressed_chunk = miniz_oxide::deflate::compress_to_vec(current_chunk_bin.as_ref(), 3);
 
         let chunk_index = U32BE(block_number / CHUNK_SIZE);
         gva_db
-- 
GitLab