Replies: 2 comments
-
We could use Forge's gas snapshots for this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Aaand we are now indeed using gas snapshot to instrument the gas usage of the test functions. Locking. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Related to PR #31 we should start tracking (probably using data from foundry) gas consumption for our heavy read-only methods.
In case we decide to have a light version of the app that only relies on web3 calls, we'll make use of multicalls to batch queries to the RPC. These RPC nodes will probably have limits for how much gas a read-only method can consume. Therefore, by figuring our the gas limit and the gas required to gather data for one stream, we can optimize the number of sequential queries needed in the web3 native version of the app.
P.S. Worth looking into this version of Multicall 3 which might be more efficient on reads.
Beta Was this translation helpful? Give feedback.
All reactions