[ 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)