Skip to content
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

[Question] Slow performance issue #881

Open
Shuunen opened this issue Jan 27, 2024 · 5 comments
Open

[Question] Slow performance issue #881

Shuunen opened this issue Jan 27, 2024 · 5 comments
Labels

Comments

@Shuunen
Copy link

Shuunen commented Jan 27, 2024

Hi there :)

Thanks for your project, I really like the meta plugin aspect, the only thing is I'm surprised to see so much delay to process a single file,

I made a super simple TS project that use hardcore & typescript : https://github.com/Shuunen/minimal-ts-hardcore

Is it normal to take 7 seconds for a single file ?

Am I missing something ?

Thanks

@qweered
Copy link

qweered commented Jan 28, 2024

I also encountered slow performance, after disabling some rule it improves a lot

@Shuunen
Copy link
Author

Shuunen commented Jan 29, 2024

@qweered What's the performance you have after disabling these rules?

@qweered
Copy link

qweered commented Jan 29, 2024

@qweered What's the performance you have after disabling these rules?

Its like down from 12 seconds to 5, I disable some typescript eslint rule, cannot remember more

@EvgenyOrekhov
Copy link
Owner

You can use TIMING=1 to see slow rules:

❯ TIMING=1 npx eslint main.ts
Rule                                                  | Time (ms) | Relative
:-----------------------------------------------------|----------:|--------:
etc/no-deprecated                                     |    97.867 |    30.3%
putout/putout                                         |    83.454 |    25.8%
compat/compat                                         |    59.005 |    18.3%
import/no-unused-modules                              |    25.591 |     7.9%
total-functions/no-unsafe-readonly-mutable-assignment |     3.903 |     1.2%
@typescript-eslint/naming-convention                  |     3.715 |     1.1%
import/no-extraneous-dependencies                     |     3.710 |     1.1%
decorator-position/decorator-position                 |     2.488 |     0.8%
@typescript-eslint/promise-function-async             |     2.064 |     0.6%
@typescript-eslint/no-redeclare                       |     1.834 |     0.6%

@Shuunen
Copy link
Author

Shuunen commented Feb 5, 2024

You can use TIMING=1 to see slow rules:

❯ TIMING=1 npx eslint main.ts

Yes I used this and file types overrides to improve performance, but still I'd like to improve the time spent, I will try to fork this repo to try to embed less plugins, see if it does the same as disabling these slow rules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants