coffeescript在node.js上的性能问题
怪我咯
怪我咯 2017-04-17 11:17:28
0
1
772

我目前使用coffeescript来编写node.js程序,并且在服务器上直接使用

coffee app.coffee

我这样做有性能损耗吗,是不是用coffee -c把它编译成js文件性能会更好一些?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
伊谢尔伦

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template