Skip to content
Snippets Groups Projects
Commit bdb5ea59 authored by Éloïs's avatar Éloïs
Browse files

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

parent cef485f6
No related branches found
No related tags found
No related merge requests found
Pipeline #12466 passed
...@@ -36,7 +36,7 @@ pub(super) fn apply_block_blocks_chunk<B: Backend>( ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment