2026-03-26 2 分钟 从 append 看 slice 的容量增长 通过 len、cap 和底层数组共享关系,理解 append 为什么有时会原地修改、有时会悄悄复制出新切片。 #slice #memory #performance