Skip to content

perf: optimize storage validation loop in blockchaintest#3107

Merged
rakita merged 1 commit intobluealloy:mainfrom
vtjl10:patch-5
Oct 17, 2025
Merged

perf: optimize storage validation loop in blockchaintest#3107
rakita merged 1 commit intobluealloy:mainfrom
vtjl10:patch-5

Conversation

@vtjl10
Copy link
Copy Markdown
Contributor

@vtjl10 vtjl10 commented Oct 16, 2025

Description

Replace inefficient unwrap_or(&HashMap::new()) pattern in storage validation loop with conditional iteration to avoid unnecessary allocations.

Changes

  • Replace temporary HashMap allocation with if let Some(...) pattern

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Oct 16, 2025

CodSpeed Performance Report

Merging #3107 will not alter performance

Comparing vtjl10:patch-5 (f080c3c) with main (91ed59f)

Summary

✅ 173 untouched

@rakita rakita merged commit 5c0be13 into bluealloy:main Oct 17, 2025
31 checks passed
@github-actions github-actions bot mentioned this pull request Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants