Liuxuxin created IOTDB-5795:
-------------------------------

             Summary: Using Bits instead of Bytes to Store Boolean Type Data
                 Key: IOTDB-5795
                 URL: https://issues.apache.org/jira/browse/IOTDB-5795
             Project: Apache IoTDB
          Issue Type: Improvement
            Reporter: Liuxuxin
             Fix For: master branch
         Attachments: image-2023-04-19-14-33-24-841.png, 
image-2023-04-19-14-33-37-296.png

In TsFile, Boolean type data typically takes up 1 byte (i.e. 8 bits) of storage 
space. This means that regardless of whether the Boolean value is true or 
false, they will occupy the same amount of space. However, since Boolean type 
only needs 1 bit to represent true or false, using bits to store Boolean type 
data can greatly reduce the required storage space.

Using bits instead of bytes to store Boolean type data can greatly reduce the 
required storage space while improving data storage and transmission efficiency.

 

!image-2023-04-19-14-33-24-841.png!

 

 

!image-2023-04-19-14-33-37-296.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to