Skip to content

perf: use lazy defaults for env vars in burntpix benchmark#3071

Closed
sashaodessa wants to merge 1 commit intobluealloy:mainfrom
sashaodessa:patch-2
Closed

perf: use lazy defaults for env vars in burntpix benchmark#3071
sashaodessa wants to merge 1 commit intobluealloy:mainfrom
sashaodessa:patch-2

Conversation

@sashaodessa
Copy link
Copy Markdown
Contributor

Summary

Replace eager unwrap_or() with lazy unwrap_or_else() when reading environment variables to avoid unnecessary string allocations.

@rakita
Copy link
Copy Markdown
Member

rakita commented Oct 9, 2025

I should probably by default close issue generated by bot accounts (Accounts without visible history or history of typo changes) previous code is okay

@rakita rakita closed this Oct 9, 2025
@rakita rakita added the ai-bot label Oct 9, 2025
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Oct 9, 2025

CodSpeed Performance Report

Merging #3071 will not alter performance

Comparing sashaodessa:patch-2 (fc67a4e) with main (aabb27a)

Summary

✅ 173 untouched

@sashaodessa
Copy link
Copy Markdown
Contributor Author

I should probably by default close issue generated by bot accounts (Accounts without visible history or history of typo changes) previous code is okay

If a user has a private profile, this does not mean that he is a bot.

rakita added a commit that referenced this pull request Jan 9, 2026
This commit consolidates improvements from 8 community PRs with the ai-bot label:

- fix: correct debug log for blob gas fields in blockchaintest (#3291)
  Split blob_excess_gas_and_price into separate debug outputs for clarity

- perf(state): remove redundant clones in account_info.rs (#3287)
  Eliminate unnecessary clone operations in test code

- docs: fix duplicate word in MIGRATION_GUIDE.md (#3209)
  Remove duplicate "allows" in PrecompileError documentation

- fix: return G2NotInSubgroup for G2 subgroup check failure (#3179)
  Correct error type from G1NotInSubgroup to G2NotInSubgroup in BLS12-381

- refactor: reuse bound tx and remove redundant context.tx() calls (#3176)
  Optimize validation by reusing transaction binding

- docs: fix incorrect reth references in blockchain.rs comments (#3169)
  Update comments to use correct terminology instead of "reth"

- perf: use lazy defaults for env vars in burntpix benchmark (#3071)
  Replace unwrap_or with unwrap_or_else to avoid unnecessary allocations

All changes have been tested with cargo check and cargo test.
@rakita rakita removed the ai-bot label Jan 9, 2026
rakita added a commit that referenced this pull request Jan 9, 2026
* chore: apply improvements from ai-bot labeled PRs

This commit consolidates improvements from 8 community PRs with the ai-bot label:

- fix: correct debug log for blob gas fields in blockchaintest (#3291)
  Split blob_excess_gas_and_price into separate debug outputs for clarity

- perf(state): remove redundant clones in account_info.rs (#3287)
  Eliminate unnecessary clone operations in test code

- docs: fix duplicate word in MIGRATION_GUIDE.md (#3209)
  Remove duplicate "allows" in PrecompileError documentation

- fix: return G2NotInSubgroup for G2 subgroup check failure (#3179)
  Correct error type from G1NotInSubgroup to G2NotInSubgroup in BLS12-381

- refactor: reuse bound tx and remove redundant context.tx() calls (#3176)
  Optimize validation by reusing transaction binding

- docs: fix incorrect reth references in blockchain.rs comments (#3169)
  Update comments to use correct terminology instead of "reth"

- perf: use lazy defaults for env vars in burntpix benchmark (#3071)
  Replace unwrap_or with unwrap_or_else to avoid unnecessary allocations

All changes have been tested with cargo check and cargo test.

* fmt
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