【发布时间】:2021-02-10 15:27:43
【问题描述】:
在同一个项目下运行同一个命令时,谁能解释一下Windows shell和WSL2在同一个系统下的解析时间差异?
如您所见,文件、行等方面也存在一些差异。有什么方法可以加快 WSL2 的解析时间?
tsc -project ./tsconfig.json --diagnostics
Windows 10 外壳(tsc 版本 3.1.2)
Files: 139
Lines: 35528
Nodes: 150245
Identifiers: 49306
Symbols: 38212
Types: 2460
I/O read: 0.05s
I/O write: 0.01s
Parse time: 0.74s
Bind time: 0.13s
Check time: 0.48s
Emit time: 0.13s
Total time: 1.48s
同一系统下的WSL2 Ubuntu 18 LTS(tsc版本4.1.4)
Files: 175
Lines: 39622
Nodes: 161997
Identifiers: 56416
Symbols: 40823
Types: 2795
Instantiations: 12267
Memory used: 76663K
I/O read: 1.13s
I/O write: 0.16s
Parse time: 14.45s
Bind time: 0.36s
Check time: 0.39s
Emit time: 0.32s
Total time: 15.52s
【问题讨论】:
标签: javascript node.js typescript tsc wsl-2