latticexyz / mud

MUD is a framework for building autonomous worlds
https://mud.dev
MIT License
750 stars 187 forks source link

Store gas metrics and optimizations #1133

Open dk1a opened 1 year ago

dk1a commented 1 year ago

Go through StoreCore and its dependencies, see what needs metrics and what can be optimized

(in approximate order of less to more dependencies)

dk1a commented 1 year ago

this issue kind of depends on having store finalized, like https://github.com/latticexyz/mud/pull/1061 https://github.com/latticexyz/mud/issues/1121 https://github.com/latticexyz/mud/issues/1130

holic commented 1 year ago

As part of this, do we wanna also do some kind of benchmark/comparison with native solidity?

dk1a commented 1 year ago

As part of this, do we wanna also do some kind of benchmark/comparison with native solidity?

would be nice, but it's not as useful for Store (since usually people don't use Store by itself), so this applies much more to World (TBD another issue)

alvrs commented 1 year ago

Moving a couple items here from #444

Gas optimization

dk1a commented 1 year ago

(moved 2 world-related items from @alvrs's comment into https://github.com/latticexyz/mud/issues/1316)