mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
perf: use Vec::with_capacity and reserve_exact (#11904)
This commit is contained in:
@@ -109,6 +109,7 @@ where
|
||||
|
||||
match self.pool.get_all_blobs_exact(txs.iter().map(|(tx, _)| tx.hash()).collect()) {
|
||||
Ok(blobs) => {
|
||||
actions_to_queue.reserve_exact(txs.len());
|
||||
for ((tx, _), sidecar) in txs.iter().zip(blobs.iter()) {
|
||||
let transaction = BlobTransaction::try_from_signed(tx.clone(), sidecar.clone())
|
||||
.expect("should not fail to convert blob tx if it is already eip4844");
|
||||
|
||||
Reference in New Issue
Block a user