-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Labels
Performanceconfigurationneeds-discussionAn issue where it's not clear whether there is a bug or we are behaving as expected.An issue where it's not clear whether there is a bug or we are behaving as expected.
Description
Describe the Bug
I'm evaluating Pyrefly for my company's Bazel project because mypy is too slow with caching disabled. However, we're seeing even worse performance from Pyrefly - over 2x slowdown.
Notable things with our Bazel setup:
- Each dependency gets installed into a separate directory
- When running a Python file, Bazel simply adds all the dependencies to
PYTHONPATH
. With pyrefly, I add these directories to--site-package-path
- When running a Python file, Bazel simply adds all the dependencies to
- Each Python file is a Bazel target, and each Bazel target is typechecked independently
- With mypy, we have
follow_imports
set tosilent
- If pyrefly is optimized for checking a whole project at once, it might not be good for multiple runs checking a single file?
- With mypy, we have
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response
Metadata
Metadata
Assignees
Labels
Performanceconfigurationneeds-discussionAn issue where it's not clear whether there is a bug or we are behaving as expected.An issue where it's not clear whether there is a bug or we are behaving as expected.