Skip to content

Optimizations, Gas and Profiling

Learn how to optimize your Aztec smart contracts and understand gas costs.

Overview

Performance and cost optimization are critical for building efficient Aztec applications. This section covers strategies for reducing gas costs and improving contract performance.

Topics

Understanding Costs

  • Gas - How gas works in Aztec and fee mechanisms

Optimization Techniques

Key Considerations

When optimizing Aztec contracts, consider:

  • Proof Generation Costs - Private functions require proof generation
  • Public vs Private - Different cost models for public and private execution
  • Storage Access - Reading and writing state has different costs
  • Circuit Size - Larger circuits are more expensive to prove

Navigate to the sections above to learn specific optimization strategies.