Skip to content

25% performance regression on main #1667

@jacobtylerwalls

Description

@jacobtylerwalls

#1442 adds about 10-25% time to a pylint run, depending on how much inference would have taken place otherwise, because it infers every single name.

On my machine, with cProfile:
astroid lints in 46.2s on main
astroid lints in 36.6s with reverting #1442

Are we okay with that? If so, should we short-circuit before inferring in the pathlib brain if the interpreter is below 3.10? (#1442 only has to do with 3.10 behavior.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions