Skip to content

feat: deduplicate API calls for identical PURLs#132

Merged
snyk-will merged 1 commit intomainfrom
feat/snyk-purl-dedup
Feb 9, 2026
Merged

feat: deduplicate API calls for identical PURLs#132
snyk-will merged 1 commit intomainfrom
feat/snyk-purl-dedup

Conversation

@snyk-will
Copy link
Contributor

No description provided.

@snyk-io
Copy link

snyk-io bot commented Feb 5, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@snyk-will snyk-will force-pushed the feat/snyk-purl-dedup branch from 0275a63 to 683b756 Compare February 6, 2026 15:13
@snyk-will snyk-will marked this pull request as ready for review February 6, 2026 15:27
@snyk-will snyk-will requested review from a team and garethr as code owners February 6, 2026 15:27
@snyk-will snyk-will force-pushed the feat/snyk-purl-dedup branch from 286c006 to 52c7d0d Compare February 9, 2026 14:50
@snyk-will snyk-will requested a review from mcombuechen February 9, 2026 15:04
Comment on lines +116 to +117
key := purl.ToString()
group, ok := purlGroups[key]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe a bit cheaper not to serialize again, but use the original purl string:

Suggested change
key := purl.ToString()
group, ok := purlGroups[key]
group, ok := purlGroups[component.PackageURL]

@snyk-will snyk-will merged commit c6d18af into main Feb 9, 2026
10 checks passed
@snyk-will snyk-will deleted the feat/snyk-purl-dedup branch February 9, 2026 15:59
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

Comments