TypeScript ๐๐๐ฑ Faster? Your App gets 10x ๐๐๐ซ๐๐จ๐ซ๐ฆ๐๐ง๐๐ Boost? What's the ๐ญ๐ซ๐ฎ๐ญ๐ก?
MS have major optimizations for TypeScript, claiming a 10x speed improve of compiler. What's the question in here, your TS app will run 10x faster? :)
โ Compilation speed is good, not really for runtime yet!!
Whatโs things ๐ฟ๐ฒ๐ฎ๐น๐น๐ ๐ฐ๐ต๐ฎ๐ป๐ด๐ฒ๐ฑ about??
- Type Checking
- Compiler Speed
- Dependency Analyst
- Better Caching & Memory Usage
Almost all thats, so, unfortunately, these affect the TypeScript ๐ฑ๐ฒ๐๐ฒ๐น๐ผ๐ฝ๐บ๐ฒ๐ป๐ :(
โ Your performance depends on ๐๐ผ๐๐ฟ ๐ผ๐ฝ๐๐ถ๐บ๐ถ๐๐ฒ for your apps.
So, what keys you can focus on and apply these to speed up your TS app??
- Faster caches build information, kind use
--๐ข๐ง๐๐ซ๐๐ฆ๐๐ง๐ญ๐๐ฅ
tsc --incremental
- Skip unnecessary check libraries, use
--๐ฌ๐ค๐ข๐ฉ๐๐ข๐๐๐ก๐๐๐ค
tsc --skipLibCheck
- node_modules handle,
--๐ฑ๐ถ๐๐ฎ๐ฏ๐น๐ฒ๐ฆ๐ผ๐๐ฟ๐ฐ๐ฒ๐ข๐ณ๐ฃ๐ฟ๐ผ๐ท๐ฒ๐ฐ๐๐ฅ๐ฒ๐ณ๐ฒ๐ฟ๐ฒ๐ป๐ฐ๐ฒ๐ฅ๐ฒ๐ฑ๐ถ๐ฟ๐ฒ๐ฐ๐
tsc --disableSourceOfProjectReferenceRedirect
- Use
๐๐๐ฐ --๐ฏ๐๐ถ๐น๐ฑ
for enables faster compilation
tsc --build
- Upgrade to TypeScript ๐๐ฎ๐๐ฒ๐๐ ๐ฉ๐ฒ๐ฟ๐๐ถ๐ผ๐ป
What's your mind about this changed or this topic miss something, let's discuss it together below :)
Top comments (1)
Let discuss together :)