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

perf: remove GasInspector from tracer, optimize step* #142

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Jun 13, 2024

Only gas_inspector.gas_remaining() was used, which is equivalent to interp.gas.remaining() in the context of step and step_end.

Additionally, mark the internal on_step functions as #[cold], as usually these are the cold path for heavy tracing operations or debugging, rather than the common path.

@DaniPopes DaniPopes requested a review from mattsse June 13, 2024 02:40
Copy link
Contributor

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm

@mattsse mattsse merged commit 70e721d into main Jun 13, 2024
11 checks passed
@DaniPopes DaniPopes deleted the dani/perf-tracer branch June 13, 2024 14:27
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