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

feat: Optimize account and storage fetching as much as possible #36

Open
rkdud007 opened this issue Mar 12, 2024 · 1 comment
Open

feat: Optimize account and storage fetching as much as possible #36

rkdud007 opened this issue Mar 12, 2024 · 1 comment
Labels
C-provider Codebase to provider implementation optimization Improvements of performance or optimization

Comments

@rkdud007
Copy link
Member

rkdud007 commented Mar 12, 2024

Context

As can see #35 most of the latency on hdp-cli is from fetching account proof and storage proof. Currently we didn't implemented persistent db & Currently those rpc calls are not handled in parallel.

Yes, hdp-cli fetcher is really dumb implementation atm.

Some Steps

Another approach

http requet cache

@rkdud007
Copy link
Member Author

update: current limitation of storage slot (note : might different per account/slot)
cargo run -- encode -a -o output.json -c input.json "max" -b 4952200 4952900 "account.0x7f2c6f930306d3aa736b3a6c6a98f512f74036d4.balance" 10 is this

with error :

2024-05-10T07:18:15.905986Z ERROR hdp_provider::evm: Failed to fetch account in block 4952870: RPC request `eth_getProof` failed with status: 429 Too Many Requests

optimization and plus 429 error should be important priority to make Provider Solid

@rkdud007 rkdud007 added the enhancement New feature or request label May 10, 2024
@rkdud007 rkdud007 added C-provider Codebase to provider implementation optimization Improvements of performance or optimization and removed enhancement New feature or request labels Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-provider Codebase to provider implementation optimization Improvements of performance or optimization
Projects
None yet
Development

No branches or pull requests

1 participant