The time to fork the compiler process is not the significant time to 
compile a package.

On Monday, 8 August 2016 13:17:23 UTC+10, bronze man wrote:
>
> I just found that the "go install" command use cmd.Run to 
> run "/usr/local/go/pkg/tool/darwin_amd64/compile" in the 
> release-branch.go1.7.
>
> I think put the code in 
> "/usr/local/go/pkg/tool/darwin_amd64/compile" command to a golang function 
> of a nonmain package,and the "go install" cmd call that golang function 
> may reduce the compile time of "go install" command.
>    * The code of parse command line flag is not running which will save 
> some time.(I do not measure that time.)
>    * The total runned processes become less, it will save some time which 
> is used by the process start and killed.(20ms per process on my mac 
> machine).
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to