From ac311cea31b2e495e243a5ba996fcc1801803001 Mon Sep 17 00:00:00 2001 From: Andrew Fitzgerald Date: Thu, 9 May 2024 11:28:25 -0500 Subject: [PATCH] ReadWriteAccountSet: use AHashSet --- core/src/banking_stage/read_write_account_set.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/banking_stage/read_write_account_set.rs b/core/src/banking_stage/read_write_account_set.rs index 6d6b908249f168..4b1efc015e2bbf 100644 --- a/core/src/banking_stage/read_write_account_set.rs +++ b/core/src/banking_stage/read_write_account_set.rs @@ -1,15 +1,15 @@ use { + ahash::AHashSet, solana_sdk::{message::SanitizedMessage, pubkey::Pubkey}, - std::collections::HashSet, }; /// Wrapper struct to accumulate locks for a batch of transactions. #[derive(Debug, Default)] pub struct ReadWriteAccountSet { /// Set of accounts that are locked for read - read_set: HashSet, + read_set: AHashSet, /// Set of accounts that are locked for write - write_set: HashSet, + write_set: AHashSet, } impl ReadWriteAccountSet {