我目前使用coffeescript来编写node.js程序,并且在服务器上直接使用
coffee app.coffee
我这样做有性能损耗吗,是不是用coffee -c
把它编译成js文件性能会更好一些?
伊谢尔伦2017-04-17 11:19:28
There is no loss, compilation only happens the first time a file is loaded, which is negligible since Node.js programs are usually long-running.
And usually you only need to compile the part of the code you wrote. The libraries on npm are usually compiled into JS, so the amount of compilation is very small.