perf(indexer): change compression level of chunks: 6 -> 3

This commit is contained in:
librelois 2021-05-18 13:38:36 +02:00
parent cef485f67a
commit bdb5ea592b

View file

@ -36,7 +36,7 @@ pub(super) fn apply_block_blocks_chunk<B: Backend>(
.map_err(|e| KvError::DeserError(e.into()))?; .map_err(|e| KvError::DeserError(e.into()))?;
let chunk_hash = Hash::compute_blake3(current_chunk_bin.as_ref()); 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); let chunk_index = U32BE(block_number / CHUNK_SIZE);
gva_db gva_db