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

[Guide] Managing Compute Budget #170

Open
jacobcreech opened this issue Jan 6, 2022 · 1 comment
Open

[Guide] Managing Compute Budget #170

jacobcreech opened this issue Jan 6, 2022 · 1 comment
Labels
Guide Entire Guide for the Cookbook

Comments

@jacobcreech
Copy link
Collaborator

A lot of people run into issues managing how much compute they're using.

A great thing to have is a guide on how to go through program development with a compute budget in mind.

Things to have:

  • Walkthrough on how compute budget is calculated
  • Table of Compute Costs
  • Example Program and how to measure costs
  • Using msg to print the current compute cost as you go
@jacobcreech jacobcreech changed the title [Ingredient] Managing Compute Budget [Guide] Managing Compute Budget Jan 8, 2022
@FrankC01
Copy link
Contributor

Just a nit:

Bullet 4 ... msg!() is nothing more than log spitting. There is no way to get the compute units to include in the message. At the moment, the only choice is to use sol_log_compute_units(); which spits out used CU up to the point you call it (it also costs 100 CU to call it) but it does not return the value to your program. Would be nice if it did!

@jacobcreech jacobcreech added the Guide Entire Guide for the Cookbook label Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Guide Entire Guide for the Cookbook
Projects
None yet
Development

No branches or pull requests

2 participants