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

Jialin Qiao commented on IOTDB-433:
-----------------------------------

[https://github.com/apache/incubator-iotdb/pull/753]

> Add iterators to TVList to prevent data copy
> --------------------------------------------
>
>                 Key: IOTDB-433
>                 URL: https://issues.apache.org/jira/browse/IOTDB-433
>             Project: Apache IoTDB
>          Issue Type: Improvement
>            Reporter: atoildw
>            Assignee: atoildw
>            Priority: Major
>             Fix For: 0.10.0-SNAPSHOT
>
>
> In the previous design, when you used in-memory data:
>  # the {{TVList}} structure was {{clone}} into an {{IWritableMemChunk}} named 
> {{chunkCopy}}
>  # And then copied again into a {{List<TimeValuePair>}} structure
>  # If multiple data happens to exist in {{flushingMemTable}}, 
> {{MemSeriesLazyMerger}} will use {{addAll(List<TimeValuePair>)}} to copy again
> so, I think we should directly use {{TVList}} to implement {{IPointReader}} 
> interface and use it externally
> Add the {{Iterator}} class and {{getIterator}} method for {{TVlist}}
> and then ,data was copied only when it is used



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

Reply via email to