-
Notifications
You must be signed in to change notification settings - Fork 22
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
Don't reclone and rebuild duplicate dependencies #82
Comments
I agree it would be nice for the duplicate building to be reduced / eliminated. Nice graph! |
If the build system is doing it's job, this should really cause things to slow down very much since things shouldn't be rebuilt from scratch. Does this actually slow things down that much? JPM lockfiles aim to fix this issue by installing all unique dependencies only once, in an order where all of a libraries dependencies are installed before it is installed. |
No, the two issues are currently not on top of my todo list so I haven't found time yet. |
But I think the issue is less severe. Have to test some more in a clean env |
I think it's mostly fixed. |
I'm unsure if I should close this, as the issue is technically not fixed. |
Thanks for checking! May be leaving it open is ok for now. |
Currently, when I have duplicate dependencies in my recursive dependency graph they are built multiple times. I suggest building the dependency tree first, and then maybe apply the algorithm in jpm/dag to build each only exactly once.
Example:
which results in the following graph:
Which means the most optimal build process would be to
(0. fill cache by walking the graph and cloning new deps as needed)
But currently it looks more like this:
The text was updated successfully, but these errors were encountered: