NEARFoundation / stats.gallery

Big & fun NEAR account analytics!
https://stats.gallery
GNU General Public License v3.0
33 stars 18 forks source link

Group RPC calls #16

Closed encody closed 3 years ago

encody commented 3 years ago

Currently RPC calls are issued for every receipt affecting an account. When receipts occur in close proximity to one another (within a block or two) only one RPC call should be issued.

encody commented 3 years ago

4a0f8f8 can reduce the number of RPC calls substantially. For example, the account hear.near (mainnet, tf: month) went from ~152 RPC requests to ~107. It doesn't always improve, though it should never perform worse.