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

Collect builtin instructions cost details #2561

Open
tao-stones opened this issue Aug 12, 2024 · 0 comments · May be fixed by #2692
Open

Collect builtin instructions cost details #2561

tao-stones opened this issue Aug 12, 2024 · 0 comments · May be fixed by #2692

Comments

@tao-stones
Copy link

Problem

All builtins only consume their const default cost (when declare_process_instruction!(...)), but compute-budget allocates 200K CU for each builtin ix; Need to gather transaction's builtin instructions details, in order to allocate correct budget for builtins.

Proposed Solution

  • collect builtin instructions cost info while iterating through instructions (that collects compute-budget instruction raw data), gathered builtin instructions details can be stored in InstructionDetails, then be sanitized and used to build correct compute-budget (in separate feature gated issue)
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 a pull request may close this issue.

1 participant