Skip to content

[1.x] Let Consistent Analysis to be opt-in by default #7807

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

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

Friendseeker
Copy link
Member

@Friendseeker Friendseeker commented Oct 22, 2024

Consistent Analysis, while having better performance on very large codebases, results in less accurate invalidation due to omission of timestamp information. For small codebases the performance improvement is negligible (<200ms per incremental compile), yet the drawback of less accurate invalidation remains.

As per discussion with Eugene, we shall make it opt-in by default instead of opt-out.

(As reference consistent analysis saves ~500ms of incremental compilation time for scala2 according to Stefan's benchmark data collected on a M2 Pro MacBook)

@Friendseeker Friendseeker requested a review from eed3si9n October 22, 2024 05:16
Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eed3si9n eed3si9n merged commit 87792c2 into sbt:1.10.x Oct 22, 2024
10 checks passed
@Friendseeker Friendseeker deleted the consistent-analysis-opt-out branch October 22, 2024 06:04
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