Skip to content

Gas optimisation ObjectInfo #653

Description

@doerfli
  • Remove initialOwner field from ObjectInfo as its not really needed
  • Remove data field from struct and store data in a separate mapping which is only used in the rare case that the object has data

This will reduce the amout of slots needed for ObjectInfo by 50% down to 2 slots which will cut read/write costs for this in half.

Example tx https://amoy.polygonscan.com/tx/0xc85256c6980d7c30ec633892906c51d38d800e24b18a1c7704cc63b2f9e25cd5

Write example
basetest___Tenderly

Read example
basetest___Tenderly

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions