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 was drilling down into the performance of handleBridgeRequestedLog and noticed we could probably shave almost half a second off by removing some redundant calls:
chain.NewChain does not know it's own chainID and must do an RPC call to get it. By passing this in, we could get rid of these calls.
New Chain is called in chainIDToChain and therefore ends up getting called twice on every singel request (although only once when forwarding is in use):
The text was updated successfully, but these errors were encountered:
I was drilling down into the performance of handleBridgeRequestedLog and noticed we could probably shave almost half a second off by removing some redundant calls:
chain.NewChain
does not know it's own chainID and must do an RPC call to get it. By passing this in, we could get rid of these calls.This calls presence has two deleterious effects:
chainIDToChain
and therefore ends up getting called twice on every singel request (although only once when forwarding is in use):The text was updated successfully, but these errors were encountered: