-
-
Notifications
You must be signed in to change notification settings - Fork 290
xo --fix very slow #558
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
Comments
The main problem is that TypeScript ESLint (and TypeScript) is very slow, and I did notice it got extra slow in the past few months. I haven't yet had the time to dig into what caused it. Also seems like the prettier config slow things down:
|
Thanks for the quick evaluation. I'll try to disable prettier. |
The sum doesn't reflect the execution time. Is there a way to enable other metrics? I disabled prettier but it has no significant impact compared to total.
|
No, the metrics are provided by ESLint and is about rule-only performance. |
To get any other metrics, someone will need to run the XO run in DevTools and look at the flame graph. |
Tracking in #515 |
Reproduction
Run
npm run lint:fix
in https://github.com/StarpTech/apollo-datasource-httpRunning on around ~5 files takes more than a second on very performant hardware.
Constraints
The text was updated successfully, but these errors were encountered: