Question about Splitting ESLint Scan Command #18480
Unanswered
Luoxiaopan
asked this question in
Q&A
Replies: 1 comment
-
The simplest explanation is that, using eslintrc, ESLint processes files sequentially one-by-one. By splitting across two processes you are reducing the number of files that each process is linting so you're seeing a decrease in the total time. There might be something more going on as well, but you'd need to dig into the performance yourself to figure it out. I'd recommend using the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on improving the ESLint scan command for our pipeline. I want to split the original command into two separate tasks, one for JavaScript and one for TypeScript, and run them in parallel to save time. However, I noticed a huge difference in the performance after splitting. The total duration went down from 45 minutes to less than 12 minutes. Do you have any idea why this happened? Is splitting a good way to optimize the command? I would appreciate any feedback from you.
Command:
Duration:
Command:
Duration:
Beta Was this translation helpful? Give feedback.
All reactions