Posted in

【Go编译原理实战手册】:为什么go run能“秒启”,而生产环境必须go build?——编译器、链接器与运行时三位一体拆解

第一章:Go语言需要编译吗?—— … 【Go编译原理实战手册】:为什么go run能“秒启”,而生产环境必须go build?——编译器、链接器与运行时三位一体拆解Read more

Posted in

Go程序启动慢于Java?揭秘go run vs go build的4层初始化开销(runtime.init→main.init→plugin.load→TLS setup)

第一章:Go程序启动慢于Java … Go程序启动慢于Java?揭秘go run vs go build的4层初始化开销(runtime.init→main.init→plugin.load→TLS setup)Read more

Posted in

Fedora上运行go run main.go比go build后执行慢3.8倍?揭秘runtime.GOMAXPROCS默认值在cgroups v2与systemd user session中的继承异常

第一章:Fedora上运行go … Fedora上运行go run main.go比go build后执行慢3.8倍?揭秘runtime.GOMAXPROCS默认值在cgroups v2与systemd user session中的继承异常Read more

Posted in

为什么Linux上go run比go build慢3.8倍?环境配置中未启用GOCACHE与GODEBUG=asyncpreemptoff的真实影响

第一章:Linux上Go语言环境 … 为什么Linux上go run比go build慢3.8倍?环境配置中未启用GOCACHE与GODEBUG=asyncpreemptoff的真实影响Read more