Skip to content

shellFor evaluation is quadratic in the number of selected packages #952

Closed
@michaelpj

Description

@michaelpj

We have a list of selected packages. We get all their dependencies, and then filter it to remove any of the selected packages. The filtering works by... traversing the list of selected packages.

So assuming the selected packages have >=1 dependency, this is at least quadratic in the number of selected packages. (Actually more like O(number of packages * number of dependencies per package), but that's even worse).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions