Skip to content

refactor(handler): build precompile frame gas without touching the interpreter crate - #3822

Merged
rakita merged 1 commit into
mainfrom
precompile-frame-gas-refactor
Jul 23, 2026
Merged

rakita merged 1 commit into
mainfrom
precompile-frame-gas-refactor

Conversation

@rakita

@rakita rakita commented Jul 23, 2026

Copy link
Copy Markdown
Member

Removes Gas::from_tracker from the interpreter crate and builds the precompile frame's gas in precompile_provider.rs instead:

let mut gas = Gas::new(gas_limit);
*gas.tracker_mut() = output.to_gas_tracker(gas_limit);

Same behavior — the tracker is fully overwritten and memory starts empty in both paths — but the interpreter no longer needs a constructor that exists only for the handler's benefit.

@rakita
rakita merged commit fbb0028 into main Jul 23, 2026
31 checks passed
@codspeed

codspeed Bot commented Jul 23, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 181 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing precompile-frame-gas-refactor (0218f31) with main (129d91c)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

RealiCZ added a commit to megaeth-labs/revm that referenced this pull request Sep 16, 2026
…ile frame gas without touching the interpreter crate (bluealloy#3822)
@RealiCZ RealiCZ mentioned this pull request Sep 18, 2026
3 tasks done
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.

1 participant