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
I've been exploring different event designs for tracking function additions/replacements/removals in diamond contracts as part of a new simplified standard for diamonds.
Surprisingly, emitting multiple small events can cost less gas than emitting a single large event — even when the smaller events include more indexed params.
Today @AnInsaneJimJam published benchmark results comparing:
event DiamondCut(FacetCut[] diamondCut) - one big event
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I've been exploring different event designs for tracking function additions/replacements/removals in diamond contracts as part of a new simplified standard for diamonds.
Surprisingly, emitting multiple small events can cost less gas than emitting a single large event — even when the smaller events include more indexed params.
Today @AnInsaneJimJam published benchmark results comparing:
Interesting findings — smaller, flatter event designs may actually be more gas-efficient and easier for indexers to work with.
Gas benchmark tests and results here: #246
Beta Was this translation helpful? Give feedback.
All reactions