Skip to content

refactor(vm): optimize opcode energy cost calculation with BigInteger#6613

Open
yanghang8612 wants to merge 1 commit intotronprotocol:developfrom
yanghang8612:optimize/energy-calculation
Open

refactor(vm): optimize opcode energy cost calculation with BigInteger#6613
yanghang8612 wants to merge 1 commit intotronprotocol:developfrom
yanghang8612:optimize/energy-calculation

Conversation

@yanghang8612
Copy link
Copy Markdown
Contributor

Summary

  • Use BigInteger instead of DataWord for memory size computation in energy cost calculation to improve precision
  • Add allowTvmOsaka proposal config in VMConfig for future activation control
  • Add unit tests for the optimized calculation

Use BigInteger for memory size computation to improve precision and add unit tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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