英文:
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);
英文:
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);
答案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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论