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 manifest requests for registry based depedendcies #3929

Merged
merged 1 commit into from
Dec 11, 2021

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Dec 10, 2021

motivation: improve performance by reducing redundant http calls

changes:

  • save main manifest on first request
  • cache known manifest across calls in RegistryPackageContainer
  • add RegistryPackageContainer tests
  • fix a bug in workspace where custom tools version is not propogated to the toolsLoader

rdar://86218181

motivation: improve performance by reducing redundant http calls

changes:
* save main manifest on first request
* cache known manifest across calls in RegistryPackageContainer
* add RegistryPackageContainer tests
* fix a bug in workspace where custom tools version is not propogated to the toolsLoader

rdar://86218181
@tomerd
Copy link
Contributor Author

tomerd commented Dec 10, 2021

@swift-ci please smoke test

@@ -290,7 +290,7 @@ public class Workspace {
) throws {
// defaults
let currentToolsVersion = customToolsVersion ?? ToolsVersion.currentToolsVersion
let toolsVersionLoader = ToolsVersionLoader()
let toolsVersionLoader = ToolsVersionLoader(currentToolsVersion: currentToolsVersion)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

customToolsVersion should only be used in tests, we should probably remove it from the public constructor and move it into an internal one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed in #3933

@tomerd tomerd requested a review from yim-lee December 10, 2021 21:59
@tomerd tomerd added the ready Author believes the PR is ready to be merged & any feedback has been addressed label Dec 10, 2021
@tomerd tomerd merged commit 7b8a90a into swiftlang:main Dec 11, 2021
tomerd added a commit to tomerd/swift-package-manager that referenced this pull request Dec 11, 2021
…#3929)

motivation: improve performance by reducing redundant http calls

changes:
* save main manifest on first request
* cache known manifest across calls in RegistryPackageContainer
* add RegistryPackageContainer tests
* fix a bug in workspace where custom tools version is not propogated to the toolsLoader

rdar://86218181
tomerd added a commit that referenced this pull request Dec 13, 2021
…3934)

motivation: improve performance by reducing redundant http calls

changes:
* save main manifest on first request
* cache known manifest across calls in RegistryPackageContainer
* add RegistryPackageContainer tests
* fix a bug in workspace where custom tools version is not propogated to the toolsLoader

rdar://86218181
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Author believes the PR is ready to be merged & any feedback has been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants