golang sync.once done 热路径
摘要:sync.once 为什么会将done放在结构体第一个字段,就能够提升性能了? 我们先来看看sync.once的结构体: // Once is an object that will perform exactly one action. // // A Once must not be copie
阅读全文
posted @ 2022-04-21 16:54
posted @ 2022-04-21 16:54
posted @ 2022-04-19 18:08