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

Optimize compare time using batch interface #21

Closed
qizhou opened this issue Aug 22, 2024 · 1 comment
Closed

Optimize compare time using batch interface #21

qizhou opened this issue Aug 22, 2024 · 1 comment
Assignees

Comments

@qizhou
Copy link

qizhou commented Aug 22, 2024

One UX problem of ethfs-cli is the long comparison time if there are multiple local files. To reduce the comparison time, one optimization is done at #17 to issue multiple RPC requests instead of one. However, this approach faces the rate-limiting of RPC servers.

One optimization that can be done is to use a batch interface to get the data hashes of the files in a single RPC call. Suppose we can get 10 data hashes per call, then we can reduce the time to 1/10x without worry about the rate-limiting issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants