-
-
Notifications
You must be signed in to change notification settings - Fork 792
perf(core): don't save content of d.ts files #6154
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
Conversation
afaf28e to
47b22cb
Compare
9296f5e to
73e5343
Compare
|
Have you run any tests to see if this would save memory on a large project? |
crates/biome_lsp/src/session.rs
Outdated
| }); | ||
| }) | ||
| .await | ||
| .unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe an expect() with a message that could point us in the right direction?
crates/biome_lsp/src/session.rs
Outdated
| project_key, | ||
| path: Some(project_path), | ||
| watch: true, | ||
| watch: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why wouldn't we want to watch it? This is the only place we set it to true (outside tests).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooops this is a leftover :D
| let _ = spawn_blocking(scan_project).await; | ||
| }) | ||
| .await | ||
| .unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏
Yes, I tried a lot, and it does help somewhat; however, I believe the majority of memory consumption is due to the module graph and type inference. The thing is, at the moment, we compute all The main challenge is re-exports, where dependencies can export their dependencies, and this is a very common pattern. I will update the FAQ section to make sure users are aware of the current works and what to expect. |
|
I guess that test failure makes sense, you'll have to query the module graph instead to verify its presence. |
Co-authored-by: Arend van Beelen jr. <[email protected]>
bb07713 to
1f96894
Compare
Co-authored-by: Arend van Beelen jr. <[email protected]>
Summary
.d.tsfiles that belong tonode_modulesinside the WorkspaceTest Plan
CI should stay green. Updated the existing snapshots.