Skip to content

Reducing gas fees #2102

@Stebalien

Description

@Stebalien

We have a few places where we can potentially reduce gas fees:

  1. When opening blocks, we can charge the first time the block was read during the current transaction and charge only a small fee per subsequent access. This will help if we repeatedly call the same actor.
  2. We can avoid charging to read blocks we've written.
  3. We can likely reduce the cost of invoking actors (see Re-Price Method Invocation #2057).
  4. We may be able to cache "pre-instantiated" wasm module instances, charging only the first time the module is instantiated.
  5. We may be able to reduce the cost of system calls, but that will require some tricky benchmarking.

Unfortunately, most of these changes won't affect sector onboarding methods. But they will reduce the cost on-chain operations that interact with multiple actors, making it easier to make complex markets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    📌 Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions