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

Ji Liu commented on ARROW-7494:
-------------------------------

??In general, a slice can be used instead of a reader/writer index pattern.??

[~jnadeau] , I don't quite understand, dose this mean hold a slice {{ArrowBuf}} 
in {{ArrowBuf}} to replace reader/writer index? doesn't this introduce more 
heap memory? Could you please explain a little more, thanks a lot!

> [Java] Remove reader index and writer index from ArrowBuf
> ---------------------------------------------------------
>
>                 Key: ARROW-7494
>                 URL: https://issues.apache.org/jira/browse/ARROW-7494
>             Project: Apache Arrow
>          Issue Type: Task
>          Components: Java
>            Reporter: Jacques Nadeau
>            Assignee: Ji Liu
>            Priority: Critical
>             Fix For: 1.0.0
>
>
> Reader and writer index and functionality doesn't belong on a chunk of memory 
> and is due to inheritance from ByteBuf. As part of removing ByteBuf 
> inheritance, we should also remove reader and writer indexes from ArrowBuf 
> functionality. It wastes heap memory for rare utility. In general, a slice 
> can be used instead of a reader/writer index pattern.



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

Reply via email to