Skip to content

Glob complexity is Quadratic on directory depth #106

Closed
@jaraco

Description

@jaraco

In #105, this project re-worked the glob functionality. In that effort, I found that in test_glob_depth, the best complexity was never better than Quadratic. That's why I wrote test_baseline_regex_complexity to show that the regex is Constant on the length of the path, which means it should be linear on a number of paths.

It's probably not important, but I'd like to get a good answer for why the test performance isn't better than Quadratic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions