Skip to content

Conversation

DaniPopes
Copy link
Collaborator

@DaniPopes DaniPopes commented Jul 23, 2025

Majorly simplifies inspect_instructions loop to only contain 1 exit and making as small as possible

Copy link

codspeed-hq bot commented Jul 23, 2025

CodSpeed Performance Report

Merging #2776 will improve performances by 3.58%

Comparing DaniPopes:inspector-loop (7cb0d58) with main (e6a25a3)

Summary

⚡ 1 improvements
✅ 170 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
analysis-inspector 394.9 ms 381.2 ms +3.58%

while interpreter.bytecode.is_not_end() {
// Get current opcode.
let opcode = interpreter.bytecode.opcode();
if interpreter.bytecode.is_not_end() {
Copy link
Member

Choose a reason for hiding this comment

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

check for is_not_end can be removed as bytecode will always point to correct opcode.

@rakita rakita marked this pull request as ready for review July 23, 2025 16:34
Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

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

one nit, otherwise lgtm!

@DaniPopes DaniPopes merged commit e42a93a into bluealloy:main Jul 24, 2025
30 checks passed
@DaniPopes DaniPopes deleted the inspector-loop branch July 24, 2025 15:22
@github-actions github-actions bot mentioned this pull request Jul 24, 2025
lwedge99 pushed a commit to sentioxyz/revm that referenced this pull request Sep 16, 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.

2 participants