facebook / facebook/pyrefly

Pyrefly VS Code Extension uses 100GB of memory

Open
#2,970 6 comments 0 reactions 0 assignees View on GitHub
performance question
Dominant language
Rust
Stars
7k
Forks
516
PR merge metrics
No merged PRs in 30d

Description

### Describe the Bug

When loading the python project I'm working on, the Pyrefly process on my Mac (info below) eventually eats up 100 GB of memory slowing down my 32 GB RAM machine a little.

The log below only as 15 GB of memory loaded. I had to kill the pyrefly process because my system was unresponsive.

**Mac**

Model Name: Mac mini
Model Identifier: Macmini8,1
Processor Name: 6-Core Intel Core i7
Processor Speed: 3.2 GHz
Number of Processors: 1
Total Number of Cores: 6
L2 Cache (per Core): 256 KB
L3 Cache: 12 MB
Hyper-Threading Technology: Enabled
Memory: 32 GB
System Firmware Version: 2103.100.6.0.0 (iBridge: 23.16.14242.0.0,0)
OS Loader Version: 583~2317
Serial Number (system): C07CF2XHPJJ9
Hardware UUID: F7C27459-DF0B-5A37-9935-38756EBABA2B
Provisioning UDID: F7C27459-DF0B-5A37-9935-38756EBABA2B
Activation Lock Status: Enabled

### Sandbox Link

_No response_

### (Only applicable for extension issues) IDE Information

**Pyrefly:**

Installation
Identifier
meta.pyrefly
Version
0.57.1
Last Updated
2 weeks ago
Size
26.56MB

**VS Code**

Version: 1.113.0
Commit: cfbea10c5ffb233ea9177d34726e6056e89913dc
Date: 2026-03-24T15:07:18+01:00
Electron: 39.8.3
ElectronBuildId: 13620978
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin x64 24.6.0

**Pyrefly log**

starting generic LSP server
INFO Reading messages
WARN PYTHONPATH environment variable is set to `/Users/kootsoop/git/suheel/ARI_search/python`. Checks in other environments may not include these paths.
INFO File /Volumes/Macintosh HD 1/Users/kootsoop/git/suheel/ARI_search/python/common_crawl/collection_two/04_download_content.py opened, prepare to validate open files.
INFO Ran task on sourcedb_queue heavy task queue. Queue time: 0.00, task time: 0.00
INFO Published 0 diagnostics for file:///Volumes/Macintosh%20HD%201/Users/kootsoop/git/suheel/ARI_search/python/common_crawl/collection_two/04_download_content.py
INFO Validated open files and committed transaction.
INFO Language server processed event `DidOpenTextDocument` in 0.27s (0.00s waiting)
INFO Language server processed event `LspResponse` in 0.00s (0.26s waiting)
WARN PYTHONPATH environment variable is set to `/Users/kootsoop/git/suheel/ARI_search/python`. Checks in other environments may not include these paths.
INFO Client configuration applied to workspace: Some(Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/Volumes/Macintosh%20HD%201/Users/kootsoop/git/suheel/ARI_search", query: None, fragment: None })
INFO Client configuration applied to workspace: None
INFO Language server processed event `LspResponse` in 0.05s (0.26s waiting)
INFO Language server processed event `LspResponse` in 0.00s (0.03s waiting)
INFO Language server processed event `LspResponse` in 0.00s (0.03s waiting)
INFO Invalidated config, prepare to recheck open files.
INFO Ran task on recheck_queue heavy task queue. Queue time: 0.00, task time: 0.01
INFO Published 0 diagnostics for file:///Volumes/Macintosh%20HD%201/Users/kootsoop/git/suheel/ARI_search/python/ari.pyi
INFO Ran task on recheck_queue heavy task queue. Queue time: 0.01, task time: 0.00
INFO Ran task on recheck_queue heavy task queue. Queue time: 0.01, task time: 0.00
INFO Populating up to 2000 files in the workspace ("/Volumes/Macintosh HD 1/Users/kootsoop/git/suheel/ARI_search").
INFO Published 0 diagnostics for file:///Volumes/Macintosh%20HD%201/Users/kootsoop/git/suheel/ARI_search/python/common_crawl/collection_two/04_download_content.py
INFO Validated open files and committed transaction.
INFO Language server processed event `RecheckFinished` in 0.00s (0.00s waiting)
INFO Language server processed event `LspResponse` in 0.00s (0.00s waiting)
INFO Prepare to check 159 files.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.