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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix choking license detection post-processing #3245 #3247

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

AyanSinhaMahapatra
Copy link
Member

@AyanSinhaMahapatra AyanSinhaMahapatra commented Feb 13, 2023

We were iterating over license detections, which was taking forever to complete and this approach uses a dict/hashmap instead which fixes the issue here.

Reference: #3245
Signed-off-by: Ayan Sinha Mahapatra ayansmahapatra@gmail.com
Reported-by: Philippe Ombredanne pombredanne@nexb.com

Fixes #3245

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 馃搼 and links the original issue above 馃敆
  • Tests pass -- look for a green checkbox 鉁旓笍 a few minutes after opening your PR
    Run tests locally to check for errors.
  • Commits are in uniquely-named feature branch and has no merge conflicts 馃搧

We were iterating over license detections, which was taking forever
to complete and this approach uses a dict/hashmap instead which
fixes the issue here.

Reference: #3245
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Reported-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Copy link
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks.

@AyanSinhaMahapatra AyanSinhaMahapatra merged commit 44ab276 into develop Feb 17, 2023
@AyanSinhaMahapatra AyanSinhaMahapatra deleted the 3245-lic-detection-stuck branch February 17, 2023 18:15
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.

License Detection takes forever to complete
2 participants