-
Notifications
You must be signed in to change notification settings - Fork 204
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
Rewrite PRSelf when loading a dependency package #3406
Conversation
b1cc3d9
to
a7eee19
Compare
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.
Very nice, thanks a lot!
a7eee19
to
7b63785
Compare
3a8ce45
to
0b46b64
Compare
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.
Looks good, thanks!
@@ -554,7 +554,8 @@ createProjectPackageDb opts thisSdkVer deps0 dataDeps = do | |||
forM allDalfs $ \(name, dalf) -> do | |||
(pkgId, package) <- | |||
either (fail . DA.Pretty.renderPretty) pure $ | |||
Archive.decodeArchive dalf | |||
-- FIXME(MH): This keeps the old behaviour but seems wrong to me. |
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.
No need to rewrite self references here, the dalf won't be linked or typechecked and for code generation it's easier if you just have the PRSelf references and translate those to the unit it.
When buidling simple project that has our favourite large project as a dependency, this decreased - total allocations from 63GB to 57GB - run time from 34.0s to 31.5s
0b46b64
to
aada4ba
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
When buidling simple project that has our favourite large project as a dependency, this decreased - total allocations from 63GB to 57GB - run time from 34.0s to 31.5s
Currently, we first load the package as is and rewrite the
PRSelf
references in a second step. This PR moves the rewriting directly
in the loading step.
When buidling simple project that has our favourite large project as a
dependency, this decreased
Pull Request Checklist
NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with
/AzurePipelines run
totrigger the build.
This change is