-
Notifications
You must be signed in to change notification settings - Fork 317
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
Loading curations from ClearlyDefined in the analyzer step is inefficient #3905
Comments
This is a preparation for resolving #3905. Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
This is a preparation for resolving #3905. Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
Looks good: https://api.clearlydefined.io/api-docs/#/curations/post_curations_ |
Requesting curations for multiple packages / ids at once can be much more performant than single request, depending on the actual provider implementation. Partly resolves #3905. Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
Requesting curations for multiple packages / ids at once can be much more performant than single request, depending on the actual provider implementation. Partly resolves #3905. Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
Requesting curations for multiple packages / ids at once can be much more performant than single request, depending on the actual provider implementation. Partly resolves #3905. Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
Requesting curations for multiple packages / ids at once can be much more performant than single request, depending on the actual provider implementation. Partly resolves #3905. Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
Requesting curations for multiple packages / ids at once can be much more performant than single request, depending on the actual provider implementation. Partly resolves #3905. Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
Requesting curations for multiple packages / ids at once can be much more performant than single request, depending on the actual provider implementation. Partly resolves #3905. Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
Requesting curations for multiple packages / ids at once can be much more performant than single request, depending on the actual provider implementation. Partly resolves #3905. Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
Reopening this to discuss with @oheger-bosch about:
|
After looking at ort/analyzer/src/main/kotlin/AnalyzerResultBuilder.kt Lines 81 to 86 in 58dfab3
and ort/analyzer/src/main/kotlin/Analyzer.kt Line 161 in 58dfab3
and ort/analyzer/src/main/kotlin/PackageManagerResult.kt Lines 46 to 51 in 58dfab3
@oheger-bosch and I came to the conclusion that this issue will disappear once all package manager are migrated to the dependency graph format (see #3825) which uses a shared list of packages for all projects of the same type. So I'm closing this in favor of keeping only #3825. |
When analyzing a larger project, I noticed that about half of the time was consumed by loading curation data from ClearlyDefined via
ClearlyDefinedPackageCurationProvider
. So optimizing this class should actually have a measurable effect on analyzer runs.Points to optimize could be:
The text was updated successfully, but these errors were encountered: