Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Extremely slow performance #428

Closed
ospfranco opened this issue Aug 18, 2021 · 2 comments
Closed

Extremely slow performance #428

ospfranco opened this issue Aug 18, 2021 · 2 comments

Comments

@ospfranco
Copy link

Hey, this could be related to #414 but on some of my files the performance absolutely tanks

Screen.Recording.2021-08-18.at.14.45.17.mov

It also makes my m1 machine super hot... using lazyMode: fs and useLSP: true, is there any tips you could offer that would improve the situation?

@adelespinasse
Copy link

I had this problem, I assume because it auto-upgraded to the latest version, which checks continuously on unsaved files. I ended up downgrading to version 1.9.2.

@ospfranco
Copy link
Author

As it turns out flow didn't do "anything" wrong. Unfortunately depending on your import structure excessive file checking might occur. Here is how I tried to debug my problem:

https://ospfranco.com/post/2021/08/25/how-to-visualize-flowtype-dependency-tree/

One possible mitigation is enabling types-first mode:

https://flow.org/en/docs/lang/types-first/#:~:text=In%20types%2Dfirst%2C%20Flow%20extracts,It%20improves%20error%20reliability.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants