V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
TangMonk

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

  •  
  •   TangMonk · Feb 28, 2018 · 2026 views
    This topic created in 2981 days ago, the information mentioned may be changed or developed.
    7 replies    2018-03-01 01:59:14 +08:00
    heww
        1
    heww  
       Feb 28, 2018   ❤️ 1
    请升级到 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
        2
    zhs227  
       Feb 28, 2018   ❤️ 1
    升级到 1.10 以后,由于编译 cache 的存在,基本上已经感受不到编译时间了
    6ufq0VLZn0DDkL80
        3
    6ufq0VLZn0DDkL80  
       Feb 28, 2018
    没必要
    dexter
        4
    dexter  
       Feb 28, 2018 via Android
    不是很懂。
    janxin
        5
    janxin  
       Feb 28, 2018
    因为有 cache 确实不需要动态库加速了
    wlwood
        6
    wlwood  
       Feb 28, 2018 via Android
    缩短时间? Go 编译时间很长吗?
    gs139
        7
    gs139  
       Mar 1, 2018
    @heww
    @zhs227

    我用 beego 的自动检测变动自动编译工具运行:bee run project,改动代码后自动编译还是得花费 3 秒左右的时间,是 bee 没用到 golang 1.10 的优势吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5402 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 01:23 · PVG 09:23 · LAX 18:23 · JFK 21:23
    ♥ Do have faith in what you're doing.