Skip to content

Perf issues with @material-ui/icons #30908

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

Closed
amcasey opened this issue Apr 12, 2019 · 6 comments
Closed

Perf issues with @material-ui/icons #30908

amcasey opened this issue Apr 12, 2019 · 6 comments
Assignees
Labels
Bug A bug in TypeScript Domain: Performance Reports of unusually slow behavior Needs Investigation This issue needs a team member to investigate its status.
Milestone

Comments

@amcasey
Copy link
Member

amcasey commented Apr 12, 2019

Server synced to 4fee628

Repro: In VS, create a new TypeScript Node Console App. Add npm references to @material-ui/icons and @material-ui/core (a peer dependency). Add the following import at the top of app.ts:

import * as icons from "@material-ui/icons";

Looks like the first updateGraph takes ~10 seconds.

code.zip
vs.zip

The log files are huge, but only because each project listing has ~5300 files. The Code log is for opening the same folder with

Version: 1.34.0-insider (user setup)
Commit: d234937aedcbc265d2272ba5861125293239f9c7
Date: 2019-04-05T05:18:43.251Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17763
@amcasey amcasey added the Domain: Performance Reports of unusually slow behavior label Apr 12, 2019
@sheetalkamat
Copy link
Member

Running tsc with --extendedDiagnostics --noEmit on this project shows we are taking 7+s for creating program. (Ignore check time since from tsserver checking is not done as part of updateGraphWorker)

Files:            5509
Lines:           64552
Nodes:          216323
Identifiers:     59606
Symbols:        152254
Types:           76084
Memory used:   234582K
I/O Read time:   1.46s
Parse time:      1.13s
Program time:    7.22s
Bind time:       0.85s
Check time:     12.81s
Total time:     20.88s

@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Jul 29, 2019
@RyanCavanaugh RyanCavanaugh added this to the TypeScript 3.7.0 milestone Jul 29, 2019
@sheetalkamat
Copy link
Member

sheetalkamat commented Oct 10, 2019

This seems to have gotten better with 3.7

Info 62   [13:25:41.644] Finishing updateGraphWorker: Project: c:/Users/shkamat/source/repos/NodejsConsoleApp4/NodejsConsoleApp4/tsconfig.json Version: 1 structureChanged: true Elapsed: 3826ms


Files:                         347
Lines:                       62617
Nodes:                      202552
Identifiers:                 61435
Symbols:                    170168
Types:                       44388
Memory used:               193264K
Assignability cache size:    95961
Identity cache size:            36
Subtype cache size:              0
I/O Read time:               0.17s
Parse time:                  0.65s
ResolveTypeReference time:   0.01s
ResolveModule time:          0.45s
Program time:                1.32s
Bind time:                   0.34s
Check time:                  6.38s
Total time:                  8.04s

@amcasey
Copy link
Member Author

amcasey commented Oct 29, 2019

@sheetalkamat How did the file count drop so much?

@amcasey
Copy link
Member Author

amcasey commented Oct 30, 2019

I don't recall whether the original repro compiled cleanly, but this time I had to add @types\react, @types\react-dom, and @types\jsdom.

@amcasey
Copy link
Member Author

amcasey commented Jan 25, 2020

Updating the metadata to reflect the fact that, while I am currently investigating, this is not yet an expected milestone for an actual fix.

@amcasey amcasey added the Needs Investigation This issue needs a team member to investigate its status. label Jan 25, 2020
@amcasey amcasey removed this from the TypeScript 3.8.1 milestone Jan 25, 2020
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Sep 11, 2020
@amcasey
Copy link
Member Author

amcasey commented Nov 17, 2022

I think this is too stale to be useful.

@amcasey amcasey closed this as completed Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: Performance Reports of unusually slow behavior Needs Investigation This issue needs a team member to investigate its status.
Projects
None yet
Development

No branches or pull requests

3 participants