Skip to content

[TASK] Investigate gas optimization: instantiate Attestation with {} notation #918

@alainncls

Description

@alainncls

Summary

It has been suggested that instantiating an Attestation struct using {} notation could save gas. This ticket aims to validate this claim and, if confirmed, apply the optimization across the codebase.

Objectives

  1. Research & benchmark

    • Compare gas costs of instantiating an Attestation using {} notation vs. standard assignment.
    • Provide concrete gas measurements to determine if the optimization is significant.
  2. Apply optimization (if confirmed)

    • Update all instances where Attestation is instantiated to use {} notation if it proves beneficial.
    • Ensure no unintended side effects in contract behaviour.

Impact

  • Potential gas savings across Verax contracts.
  • Improved efficiency for attestation-related transactions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Ready for development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions