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

fix: SPDX output performance with many relationships #3053

Merged
merged 5 commits into from
Jul 24, 2024

Conversation

kzantow
Copy link
Contributor

@kzantow kzantow commented Jul 21, 2024

With many relationships, it is very slow to repeatedly call sbom.CoordinatesForPackage due to file.Coordinate.ID() calls. It turns out these relationship functions are not really being used anywhere else, so this PR just deprecates them in favor of using an index.

Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
@kzantow kzantow changed the title fix: spdx output performance with many relationships fix: SPDX output performance with many relationships Jul 23, 2024
@wagoodman wagoodman added the bug Something isn't working label Jul 23, 2024
Signed-off-by: Keith Zantow <kzantow@gmail.com>
@kzantow kzantow self-assigned this Jul 23, 2024
@kzantow kzantow merged commit 741c8fb into anchore:main Jul 24, 2024
11 checks passed
@kzantow kzantow deleted the fix/spdx-performance branch July 24, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants