Synthetixio / issues

0 stars 3 forks source link

[TASK]: futures parameter caching for gas optimisation #381

Closed artdgn closed 2 years ago

artdgn commented 2 years ago

Futures is calling external storage contract a LOT which ends up costing a lot. We can probably do much better. Some options:

artdgn commented 2 years ago

Parameters caching and batching was not helpful, but reducing size of storage variables was somewhat helpful (20% reduction): https://github.com/Synthetixio/synthetix/pull/1614

artdgn commented 2 years ago

Done in https://github.com/Synthetixio/synthetix/pull/1614