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

Igor Seliverstov commented on IGNITE-4645:
------------------------------------------

[~vozerov], inside {{GridBinaryMarshaller#marshal}} method 
{{BinaryWriterExImpl}} is created for each marshalled object, I see no way to 
reuse it except the case where we marshall complex object and use the writer to 
marshall object fields, but there we don't pass the descriptor.

Despite that your approach looks better, so, I updated the request according 
your comment.

> Best effort to avoid extra copying in binary marshaller
> -------------------------------------------------------
>
>                 Key: IGNITE-4645
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4645
>             Project: Ignite
>          Issue Type: Bug
>          Components: binary
>            Reporter: Yakov Zhdanov
>            Assignee: Igor Seliverstov
>             Fix For: 1.9
>
>
> If we marshal a class that contain only primitives then we can predict the 
> final byte array size and avoid copies to grow array and final trimming.



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

Reply via email to