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

Splitted big main run function into small #904

Merged
merged 10 commits into from
Feb 19, 2025

Conversation

AurelienFT
Copy link
Contributor

@AurelienFT AurelienFT commented Jan 23, 2025

I benchmarked Mira swap - https://app.fuel.network/tx/0xbf476bdaecbc6202ad7a00e7fe379a29661ca8d3f99637095ce18f3e21348f44/advanced.

The execution time on the master of the fuel-vm.

image

Execution time on this branch:
image

Checklist

  • If performance characteristic of an instruction change, update gas costs as well or make a follow-up PR for that

Before requesting review

  • I have reviewed the code myself

@AurelienFT AurelienFT added the no changelog Skips the CI changelog check label Jan 23, 2025
@AurelienFT
Copy link
Contributor Author

No changelog only to trigger ci, to remove after

@AurelienFT
Copy link
Contributor Author

I think there is a lot some small changes in addition of the splitting maybe worth making multiple smaller PR.

interpriter: &mut Interpreter<M, S, Tx, Ecal>,
) -> IoResult<ExecuteState, S::DataError> {
match self {
Instruction::ADD(op) => op.execute(interpriter),
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Instruction::ADD(op) => op.execute(interpriter),
Instruction::ADD(op) => op.execute(interpreter),

@xgreenx xgreenx removed the no changelog Skips the CI changelog check label Feb 18, 2025
@xgreenx xgreenx marked this pull request as ready for review February 18, 2025 18:28
@Dentosal Dentosal added this pull request to the merge queue Feb 19, 2025
Merged via the queue into master with commit de35fca Feb 19, 2025
39 checks passed
@Dentosal Dentosal deleted the performance/split-big-function-into-small branch February 19, 2025 09:59
@Dentosal Dentosal mentioned this pull request Feb 26, 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.

4 participants