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

Remove unnecessary .Sources #4120

Merged
merged 5 commits into from
Dec 13, 2024
Merged

Remove unnecessary .Sources #4120

merged 5 commits into from
Dec 13, 2024

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Dec 12, 2024

Lots of these can just be normal Tasks, since they simply rely on upstream Task.Sources but do not add any source paths themselves. And since 0.11.x they're all the same type anyway so changing back and forth doesn't break compatibility

This speeds up selective.prepare on the com-lihaoyi/mill codebase considerably, since we need to evaluate all sources (and their transitive upstream tasks) up-front to decide what sources changed and determine the downstream tasks to run. Before this PR this ended up compiling a bunch of Scala code, after this PR it no longer does so

@lihaoyi lihaoyi merged commit 4a0046f into com-lihaoyi:main Dec 13, 2024
27 checks passed
@lefou lefou added this to the 0.12.4 milestone Dec 13, 2024
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.

2 participants