4 ms·
Very specifically, 3.4 had a few perf regressions for some type signatures [1]. More generally, TS can be a bit slow (~seconds) especially for large webapp deve
by parhamn 7y ago
Very specifically, 3.4 had a few perf regressions for some type signatures [1]. More generally, TS can be a bit slow (~seconds) especially for large webapp development if you need hot-reloading and such. There are tricks to emit without checking and doing async checking during the dev process which speeds things up quite a bit.
[1] https://github.com/Microsoft/TypeScript/issues/30663 https://github.com/Microsoft/TypeScript/issues/30663
- PaulBGD_ 7y agoI'm using 3.5.1, the issue is I don't have very many files and it's in a Node environment where it transpiles the file to the output directory with no bundling or hot reloading included. What are some of these tricks to skip checking or do async checking? I did a quick search and came up with a GitHub issue [0] for adding the option to skip checking, but didn't see anything myself. [0] https://github.com/Microsoft/TypeScript/issues/29651 https://github.com/Microsoft/TypeScript/issues/29651
- parhamn 7y agoTheres tooling for this for webpack described: https://github.com/TypeStrong/ts-loader#faster-builds https://github.com/TypeStrong/ts-loader#faster-builds More generally though you have two loops one that does transpileOnly and one that doesn't. The latter is your type check process.
- PaulBGD_ 7y agoAs I said there's no bundling, such as webpack.