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

only instantiate get_spdx_licensing() once in the project #749

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

armintaenzertng
Copy link
Collaborator

@armintaenzertng armintaenzertng commented Aug 22, 2023

While working on #742, I noticed that calling get_spdx_licensing() takes quite some time and should be done as few times as possible. I refactored the code so that a single licensing instance is shared over the whole project.

this getter takes quite some time and should be called as few times as possible

Signed-off-by: Armin Tänzer <armin.taenzer@tngtech.com>
@armintaenzertng armintaenzertng changed the title only instantiate get_spdx_licensing() once per module only instantiate get_spdx_licensing() once in the project Aug 23, 2023
Copy link
Member

@maxhbr maxhbr left a comment

Choose a reason for hiding this comment

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

LGTM

@armintaenzertng armintaenzertng merged commit ca72624 into spdx:main Aug 23, 2023
32 checks passed
@armintaenzertng armintaenzertng deleted the validation_performance branch August 23, 2023 14:45
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