Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 1dad95c

Browse files
committed
Revert "Move used_code inside the benchmark iteration"
This reverts commit cff33ab.
1 parent cff33ab commit 1dad95c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethcore/snapshot/benches/to_fat_rlps.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ fn fat_rlps(c: &mut Criterion) {
7070
let basic_account: BasicAccount = rlp::decode(&*account_data).expect("rlp from disk is ok");
7171
let account_db = AccountDB::from_hash(hashdb, account_hash);
7272
let progress = Progress::new();
73+
let mut used_code = HashSet::new();
7374

7475
let bench_name = format!("to_fat_rlps, {} bytes, ({})", chunks[idx].len(), account_hash);
7576
c.bench_function(&bench_name, |b| {
7677
b.iter(|| {
77-
let mut used_code = HashSet::new();
7878
let _ = to_fat_rlps(
7979
black_box(&account_hash),
8080
black_box(&basic_account),

0 commit comments

Comments
 (0)