高内存消耗在TypeScript中

huangapple go评论106阅读模式
英文:

High memory consumption in typescript

问题

I run a very simple test program and it consumes 130 MB of memory.
What caused this problem?

ts-node --files test.ts

// module: tset.ts

setTimeout(() => {
console.log('ok!')
}, 10000);

高内存消耗在TypeScript中

英文:

I run a very simple test program and it consumes 130 MB of memory.
What caused this problem?

> ts-node --files test.ts

// module: tset.ts

setTimeout(() => {
    console.log('ok!')
}, 10000);

高内存消耗在TypeScript中

答案1

得分: 1

Ts-node需要更多的内存来进行转换(ts -> js),所以它的大小比普通的Node执行环境大。

英文:

Ts-node need much memory for transfile (ts -> js) so it has big size than normal node execution env.

huangapple
  • 本文由 发表于 2020年1月4日 00:10:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/59581753.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定