You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "bright chen (JIRA)" <ji...@apache.org> on 2016/11/03 21:15:58 UTC

[jira] [Commented] (APEXMALHAR-2327) BucketsFileSystem.writeBucketData() call Slice.toByteArray() cause allocate unnecessary memory

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

bright chen commented on APEXMALHAR-2327:
-----------------------------------------

need to add method append(byte[] key, int koff, int klen, byte[] value, int voff, int vlen) in FileAccess.FileWriter and its implementation.

> BucketsFileSystem.writeBucketData() call Slice.toByteArray() cause allocate unnecessary memory
> ----------------------------------------------------------------------------------------------
>
>                 Key: APEXMALHAR-2327
>                 URL: https://issues.apache.org/jira/browse/APEXMALHAR-2327
>             Project: Apache Apex Malhar
>          Issue Type: Improvement
>            Reporter: bright chen
>            Assignee: bright chen
>   Original Estimate: 120h
>  Remaining Estimate: 120h
>
> BucketsFileSystem.writeBucketData call Slice.toByteArray() instead of using Slice.buffer to get the byte array, which create unnecessary byte array as Slice.toByteArray() which create new byte array and copy the data.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)