You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (JIRA)" <ji...@apache.org> on 2016/06/20 12:28:06 UTC

[jira] [Updated] (IGNITE-1785) .Net: Improve PlatformMemory/PortableStream performance and memory usage

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

Pavel Tupitsyn updated IGNITE-1785:
-----------------------------------
    Labels: .net  (was: )

> .Net: Improve PlatformMemory/PortableStream performance and memory usage
> ------------------------------------------------------------------------
>
>                 Key: IGNITE-1785
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1785
>             Project: Ignite
>          Issue Type: Improvement
>          Components: platforms
>    Affects Versions: 1.5.0.final
>            Reporter: Pavel Tupitsyn
>              Labels: .net
>
> * PlatformMemory is just a single "long _memPtr" and can be easily converted to a struct to reduce allocations (it is allocated a lot)
> * PlatformMemoryStream works with PlatformMemory.Length and Capacity indirectly. By employing a struct approach from https://issues.apache.org/jira/browse/IGNITE-1428 we can work with Length and Capacity directly, which may be faster, and will eliminate the need for SyncronizeInput/Output calls.
> * PlatformMemoryStream is allocated even more often than PlatformMemory, need to investigate whether it can also be a struct. See how List<>.GetEnumerator works, which is a struct.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)