[new config system] Performance issue
See original GitHub issueEnvironment
Node version: 18.8.0 npm version: 8.19.1 (local and 8.18.0 global) Local ESLint version: 8.23.1 Global ESLint version: - Operating System: macOS 12.6 CPU: M1
What parser are you using?
Default (Espree) + jsonc-eslint-parser
What did you do?
I’m trying to migrate to the flat config. Old config: https://github.com/zloirock/core-js/blob/master/.eslintrc.js New config: https://github.com/zloirock/core-js/blob/eslint-flat/eslint.config.js
Just run npm i && npm run lint
.
With the old-style config, lining (directly eslint
) takes 32 seconds.
With the new-style config, lining (directly eslint
) takes 2 minutes and 34 seconds.
What did you expect to happen?
The same (or better) performance.
What actually happened?
5x performance degradation.
Participation
- I am willing to submit a pull request for this issue.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Tips to improve PC performance in Windows - Microsoft Support
1. Make sure you have the latest updates for Windows and device drivers · Select the Start button, then select Settings > Windows...
Read more >20 tips and tricks to increase PC performance on Windows 10
These are the best tips to speed up your device's performance on Windows 10 by tweaking settings and making easy hardware upgrade.
Read more >How to Troubleshoot Slow Performance Issues | Dell US
Click the Start button. In the search box, type msconfig, and in the list of results, right-click msconfig and select Run as administrator....
Read more >11 tips to improve Windows 10 performance - TechTarget
IT admins can improve Windows 10 performance with a few minor tweaks, including maximizing RAM and disabling visual effects.
Read more >Adjust system.performance configuration for new guidelines
system.performance variables were converted with the original/initial [#1270608]. The converted configuration object + settings form need to ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
🎉 Awesome!
With the performance fixes, I’m getting 89 seconds with
eslint.config.js
, 90 seconds with.eslintrc.js
.