Skip to content

fix: improve performance of ReportTask/CheckLicense on projects with many modules - #405

Merged
chadlwilson merged 1 commit into
jk1:masterfrom
chadlwilson:fix-perf-regression
Jun 10, 2026
Merged

fix: improve performance of ReportTask/CheckLicense on projects with many modules#405
chadlwilson merged 1 commit into
jk1:masterfrom
chadlwilson:fix-perf-regression

Conversation

@chadlwilson

@chadlwilson chadlwilson commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

The changes in 53f9c37 and 3048739 accidentally ended up doing quadratic re-resolution of projects and dependencies before de-duplicating the data, while determining the @Input cache key.

This change fixes that, and further improves the cache key resolution to only resolve dependencies without processing their POMs, manifests etc. It also refactors the logic to be appropriately reused across ProjectReader/ConfigurationReader etc to reduce the chance of such issues and make it a little easier to refactor things towards safer project access (which this project currently does not do)

@chadlwilson
chadlwilson force-pushed the fix-perf-regression branch from 252a7a3 to d01cf31 Compare June 10, 2026 15:46
…many modules

The changes in 53f9c37 and 3048739 accidentally ended up doing quadratic re-resolution of projects and dependencies before de-duplicating the data. This change fixes that, and further improves the cache key resolution to only resolve dependencies without processing their POMs, manifests etc. It also refactors the logic to be appropriately reused across ProjectReader/ConfigurationReader etc.
@chadlwilson
chadlwilson force-pushed the fix-perf-regression branch from d01cf31 to f1b2902 Compare June 10, 2026 15:49
@chadlwilson
chadlwilson merged commit 35126d2 into jk1:master Jun 10, 2026
5 checks passed
@chadlwilson
chadlwilson deleted the fix-perf-regression branch June 10, 2026 15:57
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.

checkLicense pathologically slow on large multi-project builds since 3.1.0

1 participant