Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: Address performance of EthGetTransactionCount #10700

Merged
merged 3 commits into from
Apr 21, 2023

Commits on Apr 21, 2023

  1. perf: Address performance of EthGetTransactionCount

    We have observed that EthGetTransactionCount is one of the hotspots
    on Glif production notes, and we are seeing regular 10-20 second
    latencies when calling this rpc method.
    
    I tracked the high latency spikes and they were correlated when
    we were running ExecuteTipSet while following the chain.
    
    To address this, we should not rely on tipset computation to get
    nounce and instead look at the parent tipset and then count the
    messages sent from the 'addr'.
    fridrik01 committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    953d56e View commit details
    Browse the repository at this point in the history
  2. perf: Increase noncecache in MessagePool

    Bumped from 256 to 32k entries which should be about 6MB of cached
    entries given average nonceCacheKey of 200 bytes
    fridrik01 committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    553da39 View commit details
    Browse the repository at this point in the history
  3. address review comment

    fridrik01 committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    4028c05 View commit details
    Browse the repository at this point in the history