首页 > 其他 > 详细

为什么fsc比scalac编译程序编译要快

时间:2019-07-27 15:59:40      阅读:98      评论:0      收藏:0      [点我收藏+]

  This(scalac) compiles your source files, but there may be a perceptible delay before the compilation finishes. The reason is that every time the compiler starts up,

it spends time scanning the contents of jar files and doing other initial work before it even looks at the fresh source files you submit to it.

 

  The first time you run fsc, it will create a local server daemon attached to a port on your computer. It will then send the list of files to compile to the daemon

via the port, and the daemon will compile the files. The next time you run fsc, the daemon will already be running, so fsc will simply send the file list to the daemon,

which will immediately compile the files. Using fsc, you only need to wait for the Java runtime to startup the first time. If you ever want to stop the fsc daemon, you

can do so with fsc -shutdown.

为什么fsc比scalac编译程序编译要快

原文:https://www.cnblogs.com/25th-engineer/p/11255392.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!