-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Significant slowdown for import/no-unused-modules rule after upgrade from v2 to v3 #145
Comments
cc @ljharb Do you think anything would affect We're using |
Personally I don't think this should be related to this resolver, did you upgrade So a reproduction with only this resolver changed is required then. |
@JounQin that's unfortunate; i can't speak to its performance though. When |
Of coure. |
close due to lack of reproduction, feel free to provide one, then I'll reopen it to dig. |
I am seeing a similar slowdown, with substantial increases in the timings for at least four
N.B.: The above timings were captured without changing the versions of any dependencies other than |
Please provide reproduction instead of just posting the timing table, it doesn't help anything. |
Unfortunately, I can't share my real project, and I don't really have time to create a repro from scratch, so I tried to find a large-ish existing project that is already using the
Upgrading from
Does this provide a sufficient repro? If not, what exactly might you be looking for? |
Not sure if this might help isolate the root cause, but something I saw in another issue made me wonder about the potential impact of resolver order. I checked the resulting configuration using "settings": {
"import/resolver": {
"typescript": {},
"node": {
"extensions": [
".ts",
".tsx",
".js",
".jsx"
]
}
},
//... I tried adjusting the eslint configuration to list the |
The significant change should be
The |
|
It should be fixed by |
|
Version 3.3.0 seems to be making a pretty big difference for the Angular CLI code base, reducing the total linting time from almost 7 minutes to under 2 minutes. Unfortunately, it doesn't seem to be helping with my real code base, which is still running at over 4 minutes (including 90 seconds for
|
The fact in
The default |
Seeing similar performance issues, with times climbing from ~40s to ~600s (or around 15x longer) after upgrading to Also increased was We're using an array of 6 tsconfig files under |
The performance issue is tracked at #158, and PR welcome to improve that! |
I have medium size TypeScript project.
On v2
TIMING=1 npm run eslint
showsOn v3
TIMING=1 npm run eslint
showsThe text was updated successfully, but these errors were encountered: