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

2018 年 2 月 28 日
 TangMonk
2246 次点击
所在节点    Go 编程语言
7 条回复
heww
2018 年 2 月 28 日
请升级到 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 年 2 月 28 日
升级到 1.10 以后,由于编译 cache 的存在,基本上已经感受不到编译时间了
6ufq0VLZn0DDkL80
2018 年 2 月 28 日
没必要
dexter
2018 年 2 月 28 日
不是很懂。
janxin
2018 年 2 月 28 日
因为有 cache 确实不需要动态库加速了
wlwood
2018 年 2 月 28 日
缩短时间? Go 编译时间很长吗?
gs139
2018 年 3 月 1 日
@heww
@zhs227

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

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

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

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

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

© 2021 V2EX