facebook / pyre-check

Performant type-checking for python.
https://pyre-check.org/
MIT License
6.79k stars 432 forks source link

Add caching to configurationless migration #866

Closed stroxler closed 3 months ago

stroxler commented 3 months ago

Summary: This diff adds functionality around caching operations determining which files are included in a given .pyre_configuration.local.

Determining which files are included can be expensive. We need to perform operations to determine the following:

The steps above are performed once for each file we're linting, so determining which files should be included is an expensive process. We attempt to mitigate it by caching a lot of these operations.

Differential Revision: D57681433

facebook-github-bot commented 3 months ago

This pull request was exported from Phabricator. Differential Revision: D57681433

facebook-github-bot commented 3 months ago

This pull request was exported from Phabricator. Differential Revision: D57681433

facebook-github-bot commented 3 months ago

This pull request was exported from Phabricator. Differential Revision: D57681433

facebook-github-bot commented 3 months ago

This pull request has been merged in facebook/pyre-check@573e7725ee2601e33d9108004129181d0bf5f13f.