-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Enhancement: Investigate caching type checking APIs #6425
Comments
Removing this from the v6 milestone for now. I don't think I'll get this in in time. I'm guessing that if the caching is dangerous / trade-off-y enough to be considered a breaking change, we'd want to have the behavior be opt-in behind a flag to start anyway. |
@JoshuaKGoldberg Is this issue concerned with the same problem as #243 / #389? I would have commented on one of those, but they appear to have been closed due to inactivity, and they are locked to contributors. I've been troubleshooting extremely poor ESLint performance on my TypeScript project (single tsconfig, 3.8k files, 2M LOC). Specifically it's been painful trying to use the ESLint plugin in VS Code, which we use to format files on save as well (in conjunction with Prettier). For any file over a few hundred lines, ESLint becomes very unresponsive (any change can take 5-10 seconds to reflect in the UI). The recommended workaround in the above linked issues is to use If the enhancement you're describing here is intended to address this problem, I'd be interested in assisting, though I'm not certain where to start. If I'm barking up the wrong tree here -- apologies for hijacking this issue, would it be OK to re-open one of those issues to continue the discussion there? Or would you recommend opening a new issue? |
A new issue would be nice - worst case scenario it gets closed and linked as a duplicate 😄. But if you can provide us concrete reproduction steps -including your codebase, how to start developing on our local machines, and how to trigger the lint issues- that would be lovely. A couple of things things to read through first:
|
I'm more hopeful about the If someone does think this feature would benefit them, feel free to post an explanation why! Here if it's unlocked, or in a new issue after. |
Before You File a Proposal Please Confirm You Have Done The Following...
Relevant Package
typescript-estree
My proposal is suitable for this project
Description
Continuing from #6404 (comment): we've been talking off-and-on for ages now about adding a thin layer of caching around TypeScript's type checking APIs.
Additional Info
This'll require performance testing. Does it actually speed things up? Does it cause out-of-memory issues on our repo? Let's find out!
Strong candidate for including in the
v6
betas. I'd like to get real world user testing to make sure this doesn't explode anybody.The text was updated successfully, but these errors were encountered: