Skip to content

Commit

Permalink
temp commit testing impact of full compression
Browse files Browse the repository at this point in the history
  • Loading branch information
koloz193 committed Oct 27, 2023
1 parent 30cbede commit f8e6991
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/lib/types/src/storage_writes_deduplicator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::collections::HashMap;
use zksync_utils::u256_to_h256;

use crate::tx::tx_execution_info::DeduplicatedWritesMetrics;
use crate::writes::compress_with_best_strategy;
use crate::{AccountTreeId, StorageKey, StorageLogQuery, StorageLogQueryType, U256};

#[derive(Debug, Clone, Copy, PartialEq)]
Expand Down Expand Up @@ -126,7 +125,7 @@ impl StorageWritesDeduplicator {
});
}
(true, Some(new_value)) => {
let value_size = compress_with_best_strategy(initial_value, new_value).len();
let value_size = (new_value.bits() + 7) / 8;
let old_value = self
.modified_key_values
.insert(
Expand All @@ -149,7 +148,7 @@ impl StorageWritesDeduplicator {
*total_size += value_size;
}
(false, Some(new_value)) => {
let value_size = compress_with_best_strategy(initial_value, new_value).len();
let value_size = (new_value.bits() + 7) / 8;
self.modified_key_values.insert(
key,
ModifiedSlot {
Expand Down

0 comments on commit f8e6991

Please sign in to comment.