Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance by caching find_spec #2408

Merged

Commits on May 4, 2024

  1. Improve performance by caching find_spec

    Certain checkers upstream on pylint like import-error heavily use
    find_spec. This method is IO intensive as it looks for files
    across several search paths to return a ModuleSpec.
    
    Since imports across files may repeat themselves it makes sense to cache
    this method in order to speed up the linting process.
    
    Closes pylint-dev/pylint#9310.
    crazybolillo committed May 4, 2024
    Configuration menu
    Copy the full SHA
    69299fc View commit details
    Browse the repository at this point in the history
  2. Remove AstroidCacheSetupMixin

    This class predates efforts to have a central interface to control
    global state (including caches) and it is no longer needed.
    crazybolillo committed May 4, 2024
    Configuration menu
    Copy the full SHA
    98a0380 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    82c839e View commit details
    Browse the repository at this point in the history