Skip to content

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