Skip to main content

Questions tagged [cu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
24 views

Solana program created by anchor consumes too many CUs without any action

I have developed solana program using anchor, and it works well so far. But due to its large CU, tx doesn't land sometimes, so I tried to optimize CU. I've implemented many approaches and CU has been ...
toygr's user avatar
  • 190
4 votes
1 answer
165 views

How does the Solana BPF VM calculate how many Compute Units a program consumes?

For a given transaction, the Solana runtime consumes CUs for many “operations”. Examples of operations could be read/write locking accounts, syscalls, signature verification, etc. as seen in the cost ...
Lou Kamades's user avatar
0 votes
1 answer
32 views

set_compute_unit_limit requires an unknown signer [duplicate]

ix = process_item( {"lamports": int(lamports)}, { "destination": destination_pk, "from_account": from_account, "...
ZeroNine's user avatar
  • 516
1 vote
2 answers
71 views

Where can I find how many CUs different operations and syscalls cost?

I know I can get this by trial and error and just running the operations I want to test it, but I'd imagine it's written down somewhere too. Where?
McBain's user avatar
  • 5,384