Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/vm: simplify tracer hook invocation in interpreter loop #31074

Merged
merged 5 commits into from
Feb 3, 2025

Conversation

jwasinger
Copy link
Contributor

@jwasinger jwasinger commented Jan 24, 2025

Removes duplicate code in the interpreter loop.

The tradeoff is an additional conditional check in the hot loop of the interpreter, but this should not have a measurable performance impact. I can run the benchmarks to verify this at a later time.

@jwasinger jwasinger force-pushed the simplify-interpreter-loop branch from ff9188c to 479ea11 Compare January 24, 2025 18:44
@fjl fjl assigned s1na Jan 24, 2025
@jwasinger jwasinger changed the title core/vm: remove redundant tracing hook invocation from interpreter loop core/vm: simplify tracer hook invocation in interpreter loop Jan 25, 2025
core/vm/interpreter.go Outdated Show resolved Hide resolved
core/vm/interpreter.go Outdated Show resolved Hide resolved
@rjl493456442
Copy link
Member

rjl493456442 commented Jan 27, 2025

Lint is failing, otherwise sgtm

Copy link
Contributor

@s1na s1na left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@s1na s1na merged commit 55a1861 into ethereum:master Feb 3, 2025
3 checks passed
@s1na s1na added this to the 1.15.0 milestone Feb 3, 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.

3 participants