Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bug: using with typescript v5.5 slows down linting by 2.3x #9474

Closed
Labels
externalThis issue is with another package, not typescript-eslint itselflocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.performanceIssues regarding performance
@walkerdb

Description

@walkerdb

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I havesearched for related issues and found none that matched my issue.
  • I haveread the FAQ and my problem is not listed.

Issue Description

Under typescript 5.5 we're seeing typescript-eslint runs take 2.3x longer in our large monorepo than under any previous version of typescript. The slowdown applies to every typescript-eslint build we've tested, including the v8 rc.

We narrowed this down to a specific typescript change by usinggit bisect in the typescript repo and running our typescript-eslint rules with local typescript builds:microsoft/TypeScript#58045.

All builds prior to that commit run in expected time, all builds after run 2.3x slower. In our case that means 3m45s for ts <=5.4 vs ~8+ min for ts 5.5, with no changes other than the ts version.

I'll also be putting up an issue in the typescript repo since the slowdown seems to be coming on their end, but it seems worth raising here as well.

We can't share the private monorepo but I was able to reproduce a smaller 1.3x slowdown with the same setup in the sentry monorepo, chosen just because it's a large public monorepo that uses typescript-eslint. Our repo uses quite complex types that I'm assuming are somewhat of a pathological case for wherever the slowdown is coming from, which may explain the difference in slowdown size.

Reproduction Repository Link

walkerdb/sentry#1

Repro Steps

  1. after setting up deps, runtime yarn lint:js in the ts 5.5 branch, observe the runtime
  2. check out the linked ts 5.4 branch, install deps, and run the same command. It should be noticeably and consistently faster

I've put more detailed repro notes in the linked PR here:walkerdb/sentry#1

Versions

packageversion
@typescript-eslint/eslint-pluginrc-v8
@typescript-eslint/parserrc-v8
@typescript-eslint/scope-managerrc-v8
@typescript-eslint/typescript-estreerc-v8
@typescript-eslint/type-utilsrc-v8
@typescript-eslint/utilsrc-v8
TypeScript5.5.3
ESLint8.57
node18.18

the same slowdown applies to typescript-eslint v7 and v6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    externalThis issue is with another package, not typescript-eslint itselflocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.performanceIssues regarding performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp