问题很简单:访问一个字节比一点快吗?如果我在一个字节中存储8个布尔值,那么当我必须比较它时,它比我使用8个字节要慢吗?为什么?
performance byte bit
bit ×1
byte ×1
performance ×1