Posted in

Go程序首条用户代码执行前,runtime已默默完成的8项基础设施初始化(含netpoller、timerproc、sysmon注册)

第一章:Go程序是怎么跑起来的 … Go程序首条用户代码执行前,runtime已默默完成的8项基础设施初始化(含netpoller、timerproc、sysmon注册)Read more

Posted in

为什么defer在init函数中不生效?Go启动生命周期中init/main/runtime三阶段defer行为差异与panic recover边界详解

第一章:Go服务启动生命周期全景 … 为什么defer在init函数中不生效?Go启动生命周期中init/main/runtime三阶段defer行为差异与panic recover边界详解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

【权威实测】Go 1.0 vs Go 1.22:同一段代码,“写的字”解析耗时下降67%,但runtime初始化反而+12%?

第一章:Go语言用什么写的字 G … 【权威实测】Go 1.0 vs Go 1.22:同一段代码,“写的字”解析耗时下降67%,但runtime初始化反而+12%?Read more