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

make synchronization of classpath calculation more fine-grained #4681

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

andreas-schwarz-vector
Copy link
Contributor

Currently, the calculation of the classpath for a project is effectively a singleton because the BundleProject is used as monitor (synchronization). This leads to a poor performance if executing a tycho build with many threads, many projects and complex dependencies.

This change replaces the global monitor with a fine-grained monitor the given project the classpath should be calculated for. This speeds up the parallel build.

@laeubi laeubi added the backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change label Feb 3, 2025
Currently, the calculation of the classpath for a project is effectively a singleton because the BundleProject is used as monitor (synchronization). This leads to a poor performance if executing a tycho build with  many threads, many projects and complex dependencies.

This change replaces the global monitor with a fine-grained monitor the given project the classpath should be calculated for. This speeds up the parallel build.
Copy link
Member

@laeubi laeubi left a comment

Choose a reason for hiding this comment

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

Thanks for spotting this and the fix

@laeubi laeubi enabled auto-merge (rebase) February 4, 2025 08:38
@HeikoKlare
Copy link
Contributor

Thanks for your improvement propsals and for quickly processing this! 🙂

Copy link

github-actions bot commented Feb 4, 2025

Test Results

  606 files  ±0    606 suites  ±0   4h 25m 23s ⏱️ + 15m 11s
  434 tests ±0    426 ✅ ±0   7 💤 ±0  1 ❌ ±0 
1 302 runs  ±0  1 279 ✅ ±0  22 💤 ±0  1 ❌ ±0 

For more details on these failures, see this check.

Results for commit 3cfa93d. ± Comparison against base commit 18d50ba.

@laeubi laeubi merged commit 9525ff0 into eclipse-tycho:main Feb 4, 2025
13 of 15 checks passed
@eclipse-tycho-bot
Copy link

💚 All backports created successfully

Status Branch Result
tycho-4.0.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants