golang 可以使用动态链接库来缩短编译时间吗?

2018-02-28 21:33:19 +08:00
 TangMonk
1595 次点击
所在节点    Go 编程语言
7 条回复
heww
2018-02-28 21:47:17 +08:00
请升级到 go 1.10

This release improves caching of built packages, adds caching of successful test results, runs vet automatically during tests, and permits passing string values directly between Go and C using cgo.

https://golang.org/doc/go1.10
zhs227
2018-02-28 22:01:22 +08:00
升级到 1.10 以后,由于编译 cache 的存在,基本上已经感受不到编译时间了
cholerae
2018-02-28 22:08:56 +08:00
没必要
dexter
2018-02-28 22:13:22 +08:00
不是很懂。
janxin
2018-02-28 22:15:06 +08:00
因为有 cache 确实不需要动态库加速了
wlwood
2018-02-28 22:23:25 +08:00
缩短时间? Go 编译时间很长吗?
gs139
2018-03-01 01:59:14 +08:00
@heww
@zhs227

我用 beego 的自动检测变动自动编译工具运行:bee run project,改动代码后自动编译还是得花费 3 秒左右的时间,是 bee 没用到 golang 1.10 的优势吗?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/433660

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX