[jira] [Created] (IGNITE-6372) .NET: Direct offheap access

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-6372) .NET: Direct offheap access

Anton Vinogradov (Jira)
Pavel Tupitsyn created IGNITE-6372:
--------------------------------------

             Summary: .NET: Direct offheap access
                 Key: IGNITE-6372
                 URL: https://issues.apache.org/jira/browse/IGNITE-6372
             Project: Ignite
          Issue Type: Improvement
          Components: platforms
            Reporter: Pavel Tupitsyn
            Priority: Minor


{{cache.get}} from .NET (thick client with in-process JVM) works currently like this:

* Java {{cache.withKeepBinary().get()}}: copy a piece of unmanaged memory from off-heap to {{byte[]}}
* Java {{BinaryWriter.write}}: copy {{byte[]}} to unmanaged memory
* .NET {{BinaryReader.Read}}: deserialize object from unmanaged memory

So there are two unnecessary memory copy operations.

Ideally we should be able to pass off-heap pointer to .NET and read from there directly (this may be complicated due to page memory architecture where object can span across pages).

At least we can try to eliminate first copy to {{byte[]}} and copy from page memory to a stream directly via some additional {{BinaryObject}} implementation.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)