DEV Community

loading...

Discussion on: TypeScript is slow. What can we do about it?

Collapse
matthewpardini profile image
Matthew Pardini

I think webstorm is your problem here. What version of typescript were you on?

Collapse
alekseiberezkin profile image
Aleksei Berezkin Author

The latest stable version (4.0.3). As I already answered somewhere, with VS Code the effect is less visible. But tsserver was consuming exactly the same CPU (100% for ~15 seconds) in both cases.

Collapse
matthewpardini profile image
Matthew Pardini

Well if you read the GitHub issues on this, it does appear that there have been a few concurrent issues since sometime in version 3.3.x. VsCode handles it better by clearing cache automatically for you. Sure typescript could be faster, but why not use a better suited IDE for the job?

Thread Thread
alekseiberezkin profile image
Aleksei Berezkin Author

Again, tsserver process performed literally exactly the same for both editors. WS heaviness is the different topic, perhaps a subject for another post 😄 That's why I'm not going into these details here.

Thread Thread
matthewpardini profile image
Matthew Pardini

There are GitHub issue comments from 2019 saying that in vscode tsserver does not do that if you follow certain steps. And in a later version of vscode made those steps automated. If you’re saying it is still doing that on the latest version, you ought to file a new bug. The ide isn’t irrelevant.

Thread Thread
alekseiberezkin profile image
Aleksei Berezkin Author

You are right. I found an open issue which was lacking an example file and attached my file on which issues reproduces. Thanks for convincing me. github.com/microsoft/TypeScript/is...