Clarity theorytheory 0/50 · 0%
Performance · hard

41. Cost Analysis

Understanding the cost function.

Each Clarity function has a defined cost for CPU and memory. The Stacks node uses these to limit the total complexity of a block. Developers can use `::get_costs` in the REPL to analyze their code.

Check your understanding

  1. 1. Why does Clarity have a cost function?