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 2018/01/25 12:23:00 UTC
[jira] [Comment Edited] (IGNITE-7530) .NET: Poor performance &
excessive memory usage in GetAll and query cursors in binary mode
[ https://issues.apache.org/jira/browse/IGNITE-7530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16339149#comment-16339149 ]
Pavel Tupitsyn edited comment on IGNITE-7530 at 1/25/18 12:22 PM:
------------------------------------------------------------------
We should consider throwing an exception from {{PlatformMemoryStream.GetArray()}}, effectively enforcing detached mode for off-heap stream. This API is misleading.
was (Author: ptupitsyn):
We should consider throwing an exception from {{PlatformMemoryStream.GetArray()}}. This API is misleading.
> .NET: Poor performance & excessive memory usage in GetAll and query cursors in binary mode
> ------------------------------------------------------------------------------------------
>
> Key: IGNITE-7530
> URL: https://issues.apache.org/jira/browse/IGNITE-7530
> Project: Ignite
> Issue Type: Bug
> Components: platforms
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Priority: Major
> Labels: .NET
> Fix For: 2.5
>
>
> {{GetAll}} and query cursors do not use {{BinaryReader.DetachNext}}. So in binary mode for each binary object in a stream we copy entire stream content, see {{BinaryReader.ReadAsBinary}}, which calls {{Stream.GetArray()}}, which causes copying in {{PlatformMemoryStream}}.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)