-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Huge performance regression with tsc #28231
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
Comments
For content: In |
Something to do with how we're resolving the |
Yeah, the indexed public validateDataElementReal(dataItem: RadarColumnSeriesDataItem): void instead of public validateDataElementReal(dataItem: this["_dataItem"]): void; compile time also goes all the way back down. Still looking into why, but there's a workaround. |
Looks like during comparison checking we don't appropriately share work when comparing type references instantiated with different |
I have confirmed that |
TypeScript Version: 3.2.0-dev.20181030
Search Terms: slow performance
Code
I am speaking on behalf of AmCharts.
We have a large TypeScript library (which we sell to our customers). We tried to add in TypeScript 3.0 support to our library, but doing so caused massive slowdown issues. This is preventing our customers from using our library with TypeScript 3.0.
I have created two self-contained repos:
https://github.com/Pauan/amcharts4-typescript-example-fast
https://github.com/Pauan/amcharts4-typescript-example-slow
You can build them by using
yarn install
and thenyarn build
.The
fast
repo is using[email protected]
, theslow
repo is usingtypescript@next
.The
fast
repo builds in ~11 seconds. Theslow
repo builds in ~81 seconds!Here is a diff between the two repos:
As you can see, aside from the tsc version change, only one very small code change was made (because it was required by
typescript@next
).Expected behavior:
Compilation should be the same speed or faster.
Actual behavior:
Compilation is much slower.
Playground Link:
N/A
Related Issues:
#28025
The text was updated successfully, but these errors were encountered: