[
https://issues.apache.org/jira/browse/APEXMALHAR-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15634555#comment-15634555
]
ASF GitHub Bot commented on APEXMALHAR-2327:
--------------------------------------------
GitHub user brightchen opened a pull request:
https://github.com/apache/apex-malhar/pull/482
APEXMALHAR-2327 #resolve #comment BucketsFileSystem.writeBucketData()…
… call Slice.toByteArray() cause allocate unnecessary memory
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/brightchen/apex-malhar APEXMALHAR-2327
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/apex-malhar/pull/482.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #482
----
commit ed931fd49ae3c7c9d3a17a0ca9bd7e492c914bc2
Author: brightchen <[email protected]>
Date: 2016-11-03T22:38:16Z
APEXMALHAR-2327 #resolve #comment BucketsFileSystem.writeBucketData() call
Slice.toByteArray() cause allocate unnecessary memory
----
> 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: 2m
> Remaining Estimate: 2m
>
> 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)