Posted in

Go map初始化的逃逸分析玄机:make(map[string]int, 0)逃逸 vs new(map[string]int不逃逸?真相颠覆认知

第一章:Go map初始化的逃逸 … Go map初始化的逃逸分析玄机:make(map[string]int, 0)逃逸 vs new(map[string]int不逃逸?真相颠覆认知Read more

Posted in

为什么gjson能毫秒解析MB级JSON,但一转map再marshal就卡顿?内存布局、类型断言、interface{}逃逸三重根源剖析

第一章:Go语言中gjson库的 … 为什么gjson能毫秒解析MB级JSON,但一转map再marshal就卡顿?内存布局、类型断言、interface{}逃逸三重根源剖析Read more