-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Bug: ~1.5x slowdown in Sentry codebase from project service #8424
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
Comments
First finding: this is an example of an existing performance issue with Disabling the
More investigation to be done for the discrepancy, still. And maybe issue(s) to be filed on better detecting/handling this common scenario and/or playing better with Full investigation for the curious...Looking at logs generated with
Running
Why is the parser being called for these files? With a
😱 What's happening is:
...and thus our parser tries to create type information on |
Oh @JoshuaKGoldberg we can fix that! I'd forgotten that I'd added this to their setup. |
Aha! I didn't know about that - awesome! Filed #8428. |
This bug is mostly info specific to Sentry and the #9571 (comment) mentions two TypeScript issues tracking performance regressions. |
Uh oh!
There was an error while loading. Please reload this page.
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
Switching from
parserOptions.project: true
toparserOptions.EXPERIMENTAL_useProjectService
should in the worst case scenario should be roughly the same speed as before. The best case scenario should be faster. But checking it out on the getsentry/sentry project, I'm seeing a raise from ~50s/65s to ~80s/110s. 😬Baseline:
With the project service:
Thanks @yagiz for reporting!
Reproduction Repository Link
https://github.com/getsentry/sentry/pull/64967/files#diff-e2954b558f2aa82baff0e30964490d12942e0e251c1aa56c3294de6ec67b7cf5R28-R30
Repro Steps
getsentry/sentry
time yarn lint:js
parserOptions.EXPERIMENTAL_useProjectService
time yarn lint:js
Versions
@typescript-eslint/eslint-plugin
6.19.0
@typescript-eslint/parser
6.19.0
TypeScript
5.3.2
ESLint
8.49.0
node
20
The text was updated successfully, but these errors were encountered: