-
Notifications
You must be signed in to change notification settings - Fork 45
refactor(mithril-client): Optimize cardano db artifacts download #2359
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
Conversation
Test Results 3 files ± 0 56 suites ±0 10m 26s ⏱️ +8s Results for commit 037d9c5. ± Comparison against base commit 39e5a58. This pull request removes 5 and adds 18 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
- It will allow to put the ancillary task in the join set - Trials of the locations are now done at the task level instead of being at the joinset level. This means that the process will fails as soon as one download have all its locations fails instead of failing at the end of all downloads.
as it's easier to work with our current case: - it allow to pop front so downloads task are done using the task order withoug having to reverse a vector (because we can only `pop` a vec and not `pop_front`). - it will be more easy to add the ancillary task at the start of the list.
This avoid inefficient threshold effect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
05fee6e
to
a9f79ae
Compare
Those methodes filters out all `Unknown` locations and fails if they were all `Unknown`
…v2 client And fails if they're all Unknown.
* mithril-client from `0.11.13` to `0.11.14` * mithril-common from `0.5.10` to `0.5.11`
a9f79ae
to
037d9c5
Compare
Content
This PR refactor the way cardano database v2 files are downloaded in the
mithril-client
:max_parallel_downloads
files: No more threshold effect because of chunkingPerformance improvement over a download of ~10 000 immutables without ancillary
Note
Those commands are run on a 1 Gbit/s download speed internet connection
Before, 10k immutables download took ~33 seconds:
After, 10k immutables download took ~19 seconds:
Pre-submit checklist
Comments
This PR also fix the clippy warnings that were raised when checking with only the
fs
feature enabled.Issue(s)
Closes #2327