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

☁️ Perform remote cache download and upload concurrently #3549

Merged
merged 5 commits into from
Oct 12, 2021

Conversation

danieleformichelli
Copy link
Collaborator

Short description 📝

Perform remote cache download and upload concurrently

Checklist ✅

  • The code architecture and patterns are consistent with the rest of the codebase.
  • The changes have been tested following the documented guidelines.
  • The CHANGELOG.md has been updated to reflect the changes. In case of a breaking change, it's been flagged as such.
  • In case the PR introduces changes that affect users, the documentation has been updated.

@danieleformichelli danieleformichelli changed the title Perform remote cache download and upload concurrently ☁️ Perform remote cache download and upload concurrently Oct 7, 2021
Copy link
Member

@fortmarek fortmarek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes a lot of sense, thanks!

Copy link
Contributor

@pepicrft pepicrft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor comment.

guard exists else { return Single.just((target: target, path: nil)) }
return self.cache.fetch(name: target.target.name, hash: hash).map { (target: target, path: $0) }
return Single
.zip(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dream of the day we can add async/await to the project.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤞

@@ -69,6 +69,42 @@ public extension Array {
}
}


public extension Dictionary {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about moving this one to Dictionary+ExecutionContext?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

☑️

@danieleformichelli danieleformichelli merged commit 70a3acc into main Oct 12, 2021
@danieleformichelli danieleformichelli deleted the feature/cache/parallel-download-upload branch October 12, 2021 19:59
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

Successfully merging this pull request may close these issues.

None yet

3 participants