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

🚀 Improve cache warm performances by not recompiling already in-cache targets #3585

Merged
merged 20 commits into from Nov 19, 2021

Conversation

danieleformichelli
Copy link
Collaborator

The current logic for building the cache is to just prune the graph and build the required targets, but it doesn't replace dependencies with their cached artifact, even if already available.

Resurrection of #2404 and #2377. Now that we are pushing for caching, and especially remote one (which means we would probably compile those from scratch and we might not have their derived data), it is becoming more important to have this behavior

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 would be a great productivity boost, I don't see why we should not do this 👀

@danieleformichelli danieleformichelli changed the base branch from main to chore/linting November 16, 2021 15:47
Base automatically changed from chore/linting to main November 17, 2021 07:34
@adellibovi
Copy link
Collaborator

@danyf90 as commented offline I just pushed the fix for the logic, this should now work fine :) It would be great if you could try out a bit with your project! (I didn't update the tests)

@danieleformichelli danieleformichelli marked this pull request as ready for review November 18, 2021 16:31
@danieleformichelli
Copy link
Collaborator Author

Looks like it's working great 😍
@pepibumur what do you think of the change? 🙌

@pepicrft pepicrft merged commit 4b40e7b into main Nov 19, 2021
@pepicrft pepicrft deleted the refacto/avoid-recompiling-in-cache-targets branch November 19, 2021 17:34
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

4 participants