Skip to content

perf(rpc): avoid redundant next_env_attributes call in simulate_v1#23064

Merged
mattsse merged 2 commits intoparadigmxyz:mainfrom
stevencartavia:rpc-call-dedup
Mar 17, 2026
Merged

perf(rpc): avoid redundant next_env_attributes call in simulate_v1#23064
mattsse merged 2 commits intoparadigmxyz:mainfrom
stevencartavia:rpc-call-dedup

Conversation

@stevencartavia
Copy link
Copy Markdown
Contributor

@stevencartavia stevencartavia commented Mar 17, 2026

In simulate_v1, next_env_attributes was called twice per iteration for the same parent — once for next_evm_env and again for context_for_next_block. Extracted to a local variable.

Comment thread crates/rpc/rpc-eth-api/src/helpers/call.rs Outdated
Comment thread crates/rpc/rpc-eth-api/src/helpers/call.rs
Comment thread crates/rpc/rpc-eth-api/src/helpers/call.rs
@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Mar 17, 2026
@stevencartavia stevencartavia changed the title perf(rpc): avoid redundant lookups in simulate and call_many perf(rpc): avoid redundant next_env_attributes call in simulate_v1 Mar 17, 2026
@mattsse mattsse added this pull request to the merge queue Mar 17, 2026
Merged via the queue into paradigmxyz:main with commit 75fa613 Mar 17, 2026
38 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants