-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
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
a8a0e22
to
4393c9e
Compare
@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) |
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.
customToolsVersion should only be used in tests, we should probably remove it from the public constructor and move it into an internal one
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.
addressed in #3933
…#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
…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
motivation: improve performance by reducing redundant http calls
changes:
rdar://86218181