Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
builtin program cost
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmay committed May 3, 2021
1 parent ba9935f commit e68a0ba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/src/proposals/comprehensive-compute-fees.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ since the number of compute units will be based on the number of units already
consumed by earlier instructions in the message. This will provide some
additional tuning and composability challenges for developers.

### Builtin program compute costs

Builtin programs do not incur any compute cost at the moment and are therefore
not accounted for even when a bpf program invokes a builtin program via cpi
(except the direct overhead cost of the cpi call itself). Builtin programs
should incur a program compute cost like any other program. The challenge is
how to quantify that compute cost. One approach would be to measure the cost of
each builtin program's instructions.

## Proposed steps to implement

- Apply the compute budget cap across the entire transaction rather than
Expand Down

0 comments on commit e68a0ba

Please sign in to comment.