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

Tsz Wo Nicholas Sze commented on HDDS-293:
------------------------------------------

 In order to reduce memory usage, chunkList (renamed from chunks) is declared 
as an Object.
* When #elements == 0, chunkList is null.
* When #elements == 1, chunkList refers to the only element.
* When #elements > 1, chunkList refers to the list.


> Reduce memory usage in KeyData
> ------------------------------
>
>                 Key: HDDS-293
>                 URL: https://issues.apache.org/jira/browse/HDDS-293
>             Project: Hadoop Distributed Data Store
>          Issue Type: Improvement
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>            Priority: Major
>
> Currently, the field chunks is declared as a List<ChunkInfo> in KeyData as 
> shown below.
> {code}
> //KeyData.java
>   private List<ContainerProtos.ChunkInfo> chunks;
> {code}
> It is expected that many KeyData objects only have a single chunk.  We could 
> reduce the memory usage.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to