You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generally, maps are more gas-efficient than arrays. Instead of storing an array of tickets owned for each customer for each event, can we save gas by storing customer structs which contain maps of tickets owned and in which event?
The text was updated successfully, but these errors were encountered:
Gjorsi
changed the title
Question - Can we reduce gas by changing ticket ownership storage to customer-oriented?
Can we reduce gas by changing ticket ownership storage to customer-oriented?
Apr 24, 2020
Generally, maps are more gas-efficient than arrays. Instead of storing an array of tickets owned for each customer for each event, can we save gas by storing customer structs which contain maps of tickets owned and in which event?
The text was updated successfully, but these errors were encountered: