这个注释不是说key和value分开存储是为了减少内存对齐的开销么?
【 在 world 的大作中提到: 】
: 代码里写了:
: NOTE: packing all the keys together and then all the elems together makes the code a bit more complicated than alternating key/elem/key/elem/... but it allows us to eliminate padding which would be needed for, e.g., map[int64]int8.
: 码农已经很少了,Go的码农更少,上十大是做梦。除非你天天在版上发积分。
: ...................
--
FROM 223.72.88.*