Will ts-node slow down the performance because it requires compiling ts code.
Opened this issue · 2 comments
linweigao commented
Will ts-node slow down the performance because it requires compiling ts code.
asinner commented
@linweigao just seeing this issue now sorry for the late reply - and yes ts-node will slow down performance although I believe it will only penalize startup performance. I will eventually add a separate tsc
compile step command for production use cases.
asinner commented
@linweigao couple observations so far on using ts-node
in production:
- server start time is noticeably slower
- not a good option for running on low memory machines:
- using an instance with 1gb memory
- for small scripts it can run fine on this type of machine, but once more scripts are fed to the compiler, memory overhead will cause OOM and docker will exit with code 139
- did not observe any runtime degradation for small workloads