Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

High memory consumption in typescript

Tags:

ts-node

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);

enter image description here

like image 653
alihejrati Avatar asked Nov 19 '25 12:11

alihejrati


1 Answers

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

like image 186
Songwon Park Avatar answered Nov 22 '25 03:11

Songwon Park