Skip to content

Single purl lookup on packages endpoint can take up to 20 seconds #1218

Description

@tdruez

For example a call on https://public.vulnerablecode.io/api/packages/ with the following payload: {'purl': 'pkg:alpine/libxml2@2.9.8-r1'}

from scanpipe.pipes import vulnerablecode
from timeit import default_timer as timer

start_time = timer()
vulnerabilities = vulnerablecode.get_vulnerabilities_by_purl("pkg:alpine/libxml2@2.9.8-r4")
print(timer() - start_time)
# -> 19.21

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions