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

Various improvements of the TP-Editor's content-assist #1449

Merged
merged 3 commits into from
Oct 19, 2024

Conversation

HannesWell
Copy link
Member

  • Make RepositoryCache static instead of singleton
  • Consider all repositories of location for proposals
  • Completely parallelize P2 metadata fetching

Copy link

github-actions bot commented Oct 19, 2024

Test Results

   285 files  ±0     285 suites  ±0   47m 34s ⏱️ -2s
 3 586 tests ±0   3 510 ✅ ±0   76 💤 ±0  0 ❌ ±0 
10 950 runs  ±0  10 719 ✅ ±0  231 💤 ±0  0 ❌ ±0 

Results for commit 09c6419. ± Comparison against base commit 80dc588.

♻️ This comment has been updated with latest results.

Map<String, List<IVersionedId>> map = toSortedMap(P2Fetcher.fetchAvailableUnits(r));
future.complete(map);
});
job.setUser(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think Jobs should have a group here as there could be many of them.

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried that but in the UI I couldn't see a difference and in code it's not needed, since the joint completion is handled via the Future. Therefore I cannot see a real advantage here.

What also should be considered that at maximum all declared repos of a location are queried in parallel.
So I assume the number of parallel jobs not to be too great.

@HannesWell HannesWell force-pushed the tp-editor-content-assist branch 2 times, most recently from b92ac06 to cb1a9df Compare October 19, 2024 14:00
And remove the 'flush' parameter from
RepositoryCache.fetchP2UnitsFromRepo(), because this method is only
called with 'flush=true' if the repository is not 'up-to-date' and
therefore no data are available any ways.

Furthermore make RepositoryCache thread-safe.
And use the parsed location URI of a repository as cache-key.
@HannesWell HannesWell merged commit 52e96a6 into eclipse-pde:master Oct 19, 2024
13 of 14 checks passed
@HannesWell HannesWell deleted the tp-editor-content-assist branch October 19, 2024 21:58
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