duanhan7001 2018-05-02 19:44
浏览 16
已采纳

运行输出花费的时间太长

If I click on "Run go build index.go", Goland takes 3 seconds until it returns the output. Each other time it takes about 20 seconds. It is not about the code, because the code is simple:

package main

import "fmt"

func main() {
    fmt.Println("Hello World")
}

If I run this file on terminal with go run index.go, it takes about 1 second.

I have just installed Goland for the first time, so there are no older configs in it. How can I fix this issue?

  • 写回答

1条回答 默认 最新

  • duanchandun1860 2018-05-02 20:05
    关注

    First, make sure you have the latest Go version, Go 1.10.2 at the time of writing. This improves the compilation speed dramatically due to caches added by the Go tool.

    Second, since this doesn't seem to be a constant issue, do you actually have this problem only on running that specific program with no debugging session in between? Is your anti-virus/computer doing something else in background?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
  • ¥15 qt6.6.3 基于百度云的语音识别 不会改
  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行