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

ASF GitHub Bot commented on APEXCORE-648:
-----------------------------------------

GitHub user vrozov opened a pull request:

    https://github.com/apache/apex-core/pull/477

    APEXCORE-648 Unnecessary byte array copy in 
DefaultStatefulStreamCodec.toDataStatePair()

    @sandeshh Please review and merge

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/vrozov/apex-core APEXCORE-648

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/apex-core/pull/477.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 #477
    
----
commit d983f4928d9b92d3cafb5830593dfb63428ad139
Author: Vlad Rozov <[email protected]>
Date:   2017-02-20T16:03:11Z

    APEXCORE-648 Unnecessary byte array copy in 
DefaultStatefulStreamCodec.toDataStatePair()

----


> Unnecessary byte array copy in DefaultStatefulStreamCodec.toDataStatePair()
> ---------------------------------------------------------------------------
>
>                 Key: APEXCORE-648
>                 URL: https://issues.apache.org/jira/browse/APEXCORE-648
>             Project: Apache Apex Core
>          Issue Type: Bug
>            Reporter: Vlad Rozov
>            Assignee: Vlad Rozov
>            Priority: Minor
>
> DefaultStatefulStreamCodec.toDataStatePair() calls Kryo Output.toBytes() that 
>  creates new byte[] and copies serialized data to the newly allocated array. 
> It is not necessary as the output of toDataStatePair() will be copied again 
> in PayloadTuple.getSerializedTuple().



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to