question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[new config system] Performance issue

See original GitHub issue

Environment

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:closed
  • Created a year ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
nzakascommented, Sep 22, 2022

🎉 Awesome!

0reactions
mdjermanoviccommented, Sep 22, 2022

With the performance fixes, I’m getting 89 seconds with eslint.config.js, 90 seconds with .eslintrc.js.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found