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

refactor: add type-aware rules to demonstrate slowdown under ts 5.5 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

walkerdb
Copy link
Owner

@walkerdb walkerdb commented Jul 2, 2024

Demonstration of slower typescript-eslint behavior under typescript 5.5. Adds type-aware rules to the repo lint task and sets TSESTREE_SINGLE_RUN="true" to ensure some optimizations are on.

Note: I'm explicitly not using typescript-eslint's projectServices setting, but the slowdown is present with or without it.

To recreate the issue:

  1. clone this repo and open this branch
  2. run yarn to install deps
  3. run time yarn lint:js to see how long it takes
  4. open the ts 5.4 branch refactor: swap to ts 5.4 #2 (this exact content except ts has been swapped to 5.4)
  5. run yarn to install deps
  6. run time yarn lint:js and compare its runtime to the ts 5.5 run.

runtimes on my machine (m3 max, 96gb ram):

  • ts 5.4: ~57s
  • ts 5.5: ~75s, 30% slower

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

Successfully merging this pull request may close these issues.

1 participant