8000 pyrefly gets really slow when run in environment with a lot of dependencies · Issue #360 · facebook/pyrefly · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
pyrefly gets really slow when run in environment with a lot of dependencies #360
Open
@hauntsaninja

Description

@hauntsaninja

Describe the Bug

I have a small 3k line project with not many dependencies

If I install its dependencies in a fresh environment, pyrefly runs in about 200ms:

 INFO 17 errors shown, 4 errors ignored, 19 modules, 485 transitive dependencies, 143,623 lines, took 0.20s, peak memory physical 130.6 MiB

However, if I run in a large monolithic Python virtual environment with over a thousand installs, pyrefly runs in ~30s:

 INFO 17 errors shown, 4 errors ignored, 19 modules, 17,920 transitive dependencies, 8,128,708 lines, took 26.33s, peak memory physical 1.9 GiB

The project is in a closed source repo, but I will try to see if I can make an open source reproduction.

In the meantime, is there anything I can do to figure out what the extra transitive dependencies pyrefly is checking are? --verbose doesn't seem to make a difference

pyrefly 0.16.3

Metadata

Metadata

Assignees

Labels

UserBugs reported by external users that should be prioritised

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0