-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Control Flow Analysis Performance Regression #62050
Copy link
Copy link
Open
Labels
Domain: PerformanceReports of unusually slow behaviorReports of unusually slow behaviorHelp WantedYou can do thisYou can do thisPossible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some casesThe current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
Metadata
Metadata
Assignees
Labels
Domain: PerformanceReports of unusually slow behaviorReports of unusually slow behaviorHelp WantedYou can do thisYou can do thisPossible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some casesThe current behavior isn't wrong, but it's possible to see that it might be better in some cases
Type
Fields
Give feedbackNo fields configured for issues without a type.
🔎 Search Terms
Control Flow
🕗 Version & Regression Information
⏯ Playground Link
No response
💻 Code
🙁 Actual behavior
I encountered a severe performance regression when type-checking a very large JavaScript file (~360,000 lines).
v4.9.5: Type-checking takes ~16,476ms.
v5.5.4: Type-checking time increases to ~64,196ms (4x slower).
Steps to Reproduce:
After testing, I believe this regression was introduced by PR #58013. When I revert this commit, the performance returns to v4.9.5 levels.
testLargeFile.zip
🙂 Expected behavior
The performance is the same as v4.9.5
Additional information about the issue
No response