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

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

Github user asfgit closed the pull request at:

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


> 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