apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Yan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (APEXMALHAR-2327) BucketsFileSystem.writeBucketData() call Slice.toByteArray() cause allocate unnecessary memory
Date Thu, 03 Nov 2016 21:57:58 GMT

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

David Yan commented on APEXMALHAR-2327:
---------------------------------------

Or maybe just add append(Slice key, Slice value) since its counterpart (FileReader) is already
using Slice all over the place in the interface?

> 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)

Mime
View raw message