[ 
https://issues.apache.org/jira/browse/IGNITE-4683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yakov Zhdanov updated IGNITE-4683:
----------------------------------
    Description: 
Now, when Ignite marshals to cache object it marshals to byte array and then 
strips the byte array to return array of exact size. In most cases marshalled 
objects are sent via network or copied to offheap, so last step with copying 
data to a new array is not needed.

# We can add overload for marshalling methods to return ByteBuffer. 
# Probably, we will need some new CacheObject implementations to wrap 
ByteBuffer.
# We will need to add support for ByteBuffers to direct marshaller

> Need to avoid extra-copy to byte array when marshalling to cache object (e.g. 
> return ByteBuffer)
> ------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-4683
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4683
>             Project: Ignite
>          Issue Type: Improvement
>          Components: cache
>            Reporter: Yakov Zhdanov
>            Assignee: Igor Seliverstov
>             Fix For: 2.1
>
>
> Now, when Ignite marshals to cache object it marshals to byte array and then 
> strips the byte array to return array of exact size. In most cases marshalled 
> objects are sent via network or copied to offheap, so last step with copying 
> data to a new array is not needed.
> # We can add overload for marshalling methods to return ByteBuffer. 
> # Probably, we will need some new CacheObject implementations to wrap 
> ByteBuffer.
> # We will need to add support for ByteBuffers to direct marshaller



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

Reply via email to