[ 
https://issues.apache.org/jira/browse/IOTDB-840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17195849#comment-17195849
 ] 

Jialin Qiao commented on IOTDB-840:
-----------------------------------

Good work! Each enum reference takes 4 bytes, so three enums occupy 12 bytes.  
Using 3 bytes saves 9 bytes per series. 1M * 9 = 9M, the result is reasonable. 

You could use Jprofiler to analyze the memory.

> Encode the three enum fields in MeasurementSchema to save memory
> ----------------------------------------------------------------
>
>                 Key: IOTDB-840
>                 URL: https://issues.apache.org/jira/browse/IOTDB-840
>             Project: Apache IoTDB
>          Issue Type: Improvement
>          Components: Core/Engine
>            Reporter: Jialin Qiao
>            Assignee: wangyanhong
>            Priority: Major
>              Labels: easy-fix, pull-request-available
>         Attachments: 1.png, 2.png, 3.png, 4.png, 5.png, 6.png
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to